Browse Source

Copy parser jars into the bootstrap and dist areas. Makes it

easier to run Ant from the result of dist-lite


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275054 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
77c4393863
3 changed files with 14 additions and 14 deletions
  1. +1
    -1
      build.bat
  2. +6
    -6
      build.sh
  3. +7
    -7
      build.xml

+ 1
- 1
build.bat View File

@@ -13,7 +13,7 @@ echo Bootstrap FAILED
goto cleanup goto cleanup


:runAnt :runAnt
set LOCALCLASSPATH=lib/xercesImpl.jar;lib/xml-apis.jar
set LOCALCLASSPATH=
for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i
set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH% set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH%
set LOCALCLASSPATH= set LOCALCLASSPATH=


+ 6
- 6
build.sh View File

@@ -10,7 +10,7 @@ case "`uname`" in
CYGWIN*) cygwin=true ;; CYGWIN*) cygwin=true ;;
Darwin*) darwin=true Darwin*) darwin=true
if [ -z "$JAVA_HOME" ] ; then if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi fi
;; ;;
esac esac
@@ -21,14 +21,14 @@ export ANT_HOME


if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
/bin/sh ./bootstrap.sh /bin/sh ./bootstrap.sh
fi
fi


if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
echo Bootstrap FAILED echo Bootstrap FAILED
exit exit
fi fi


LOCALCLASSPATH=lib/xercesImpl.jar:lib/xml-apis.jar
LOCALCLASSPATH=
# add in the dependency .jar files # add in the dependency .jar files
DIRLIBS=lib/optional/*.jar DIRLIBS=lib/optional/*.jar
for i in ${DIRLIBS} for i in ${DIRLIBS}
@@ -40,14 +40,14 @@ done


# make sure the classpath is in unix format # make sure the classpath is in unix format
if $cygwin ; then if $cygwin ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi fi


CLASSPATH=$LOCALCLASSPATH:$CLASSPATH CLASSPATH=$LOCALCLASSPATH:$CLASSPATH


# switch back to Windows format # switch back to Windows format
if $cygwin ; then if $cygwin ; then
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi fi


export CLASSPATH export CLASSPATH
@@ -62,5 +62,5 @@ else
ANT_INSTALL="-emacs" ANT_INSTALL="-emacs"
fi fi


bootstrap/bin/ant -emacs "$ANT_INSTALL" $*
bootstrap/bin/ant "$ANT_INSTALL" $*



+ 7
- 7
build.xml View File

@@ -1009,6 +1009,13 @@
</fileset> </fileset>
</copy> </copy>


<copy todir="${dist.lib}">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
<include name="*.zip"/>
</fileset>
</copy>

<copy todir="${dist.bin}"> <copy todir="${dist.bin}">
<fileset dir="${script.dir}/"/> <fileset dir="${script.dir}/"/>
</copy> </copy>
@@ -1058,13 +1065,6 @@
<mkdir dir="${dist.docs}"/> <mkdir dir="${dist.docs}"/>
<mkdir dir="${dist.etc}"/> <mkdir dir="${dist.etc}"/>


<copy todir="${dist.lib}">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
<include name="*.zip"/>
</fileset>
</copy>

<copy todir="${dist.lib}" file="${lib.dir}/README"/> <copy todir="${dist.lib}" file="${lib.dir}/README"/>


<copy todir="${dist.docs}"> <copy todir="${dist.docs}">


Loading…
Cancel
Save