Skip to content

Commit

Permalink
Merge changes made to 1.5 Beta1.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272826 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Magesh Umasankar committed Jun 1, 2002
1 parent d7c01be commit a9aa75a
Show file tree
Hide file tree
Showing 232 changed files with 7,348 additions and 981 deletions.
380 changes: 245 additions & 135 deletions WHATSNEW

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bootstrap.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if not "%OS%" == "Windows_NT" if exist bootstrap\nul deltree/y bootstrap
if "%OS%" == "Windows_NT" if exist build\nul rmdir/s/q build
if not "%OS%" == "Windows_NT" if exist build\nul deltree/y build

SET LOCALCLASSPATH=lib\xercesImpl.jar;lib\xmlParserAPIs.jar
SET LOCALCLASSPATH=lib\xercesImpl.jar;lib\xml-apis.jar
for %%i in (lib\optional\*.jar) do call src\script\lcp.bat %%i
if exist "%JAVA_HOME%\lib\tools.jar" call src\script\lcp.bat %JAVA_HOME%\lib\tools.jar
if exist "%JAVA_HOME%\lib\classes.zip" call src\script\lcp.bat %JAVA_HOME%\lib\classes.zip
Expand All @@ -50,7 +50,7 @@ if not exist build\classes\nul mkdir build\classes
echo.
echo ... Compiling Ant Classes

"%JAVAC%" -d %CLASSDIR% %TOOLS%\bzip2\*.java %TOOLS%\tar\*.java %TOOLS%\zip\*.java %TOOLS%\ant\*.java %TOOLS%\ant\types\*.java %TOOLS%\ant\taskdefs\*.java %TOOLS%\ant\util\*.java %TOOLS%\ant\util\regexp\RegexpMatcher.java %TOOLS%\ant\util\regexp\RegexpMatcherFactory.java %TOOLS%\ant\taskdefs\condition\*.java %TOOLS%\ant\taskdefs\compilers\*.java
"%JAVAC%" %BOOTJAVAC_OPTS% -d %CLASSDIR% %TOOLS%\bzip2\*.java %TOOLS%\tar\*.java %TOOLS%\zip\*.java %TOOLS%\ant\*.java %TOOLS%\ant\types\*.java %TOOLS%\ant\taskdefs\*.java %TOOLS%\ant\util\*.java %TOOLS%\ant\util\regexp\RegexpMatcher.java %TOOLS%\ant\util\regexp\RegexpMatcherFactory.java %TOOLS%\ant\taskdefs\condition\*.java %TOOLS%\ant\taskdefs\compilers\*.java

echo.
echo ... Copying Required Files
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if [ -d "build" ] ; then
rm -r build
fi

CLASSPATH=lib/xercesImpl.jar:lib/xmlParserAPIs.jar:${CLASSPATH}
CLASSPATH=lib/xercesImpl.jar:lib/xml-apis.jar:${CLASSPATH}

DIRLIBS=lib/optional/*.jar
for i in ${DIRLIBS}
Expand Down
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo Bootstrap FAILED
goto cleanup

:runAnt
set LOCALCLASSPATH=lib\xercesImpl.jar;lib\xmlParserAPIs.jar;bootstrap\lib\ant.jar
set LOCALCLASSPATH=lib\xercesImpl.jar;lib\xml-apis.jar;bootstrap\lib\ant.jar
for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i
set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH%
set LOCALCLASSPATH=
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/
exit
fi

LOCALCLASSPATH=lib/xercesImpl.jar:lib/xmlParserAPIs.jar
LOCALCLASSPATH=lib/xercesImpl.jar:lib/xml-apis.jar:bootstrap/lib/ant.jar
# add in the dependency .jar files
DIRLIBS=lib/optional/*.jar
for i in ${DIRLIBS}
Expand Down
99 changes: 84 additions & 15 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
<property name="regexp.package" value="${util.package}/regexp"/>

<property name="manifest" value="src/etc/manifest"/>

<property name="unfiltered.files" value="**/*.gif,**/*.jpg,**/*.ico"/>


<!--
Expand All @@ -65,6 +67,7 @@
<property name="build.lib" value="${build.dir}/lib"/>
<property name="build.javadocs" value="${build.dir}/javadocs"/>
<property name="build.tests" value="${build.dir}/testcases"/>
<property name="build.tests.javadocs" value="${build.dir}/javadocs.test/"/>

<path id="classpath">
</path>
Expand Down Expand Up @@ -118,6 +121,8 @@
-->
<!-- depends on JDK version -->
<patternset id="needs.jdk1.2+">
<exclude name="${optional.package}/extension/**/*.java"
unless="jdk1.2+" />
<exclude name="${util.package}/optional/NoExitSecurityManager.java"
unless="jdk1.2+" />
<exclude name="${optional.package}/Javah.java"
Expand All @@ -136,6 +141,10 @@
<!-- use various 1.2 methods -->
<exclude name="${optional.package}/sitraka/**/*.java"
unless="jdk1.2+" />
<exclude name="${optional.package}/ide/VAJ*.java"
unless="jdk1.2+" />
<exclude name="${optional.package}/starteam/*.java"
unless="jdk1.2+" />
</patternset>
<patternset id="needs.jdk1.3+">
<exclude name="${ant.package}/taskdefs/TestProcess.java"
Expand Down Expand Up @@ -294,6 +303,20 @@
</patternset>
<patternset id="teststhatfail">
</patternset>

<!--
===================================================================
Set up a patternsets that matches the parts of our JUnit testsuite
that may be useful for task developers.
===================================================================
-->
<patternset id="useful.tests">
<include name="${ant.package}/BuildFileTest*" />
<include name="${regexp.package}/RegexpMatcherTest*" />
<include name="${regexp.package}/RegexpTest*" />
<include name="${optional.package}/AbstractXSLTLiaisonTest*" />
<include name="${ant.package}/types/AbstractFileSetTest*" />
</patternset>

<!--
===================================================================
Expand All @@ -317,6 +340,16 @@
<available property="trax.present"
classname="javax.xml.transform.Transformer"
classpathref="classpath" />
<condition property="trax.impl.present">
<or>
<and>
<isset property="javax.xml.transform.TransformerFactory"/>
<available classname="${javax.xml.transform.TransformerFactory}"
classpathref="classpath" />
</and>
<available resource="META-INF/services/javax.xml.transform.TransformerFactory"/>
</or>
</condition>
<available property="xslp.present"
classname="com.kvisco.xsl.XSLProcessor"
classpathref="classpath" />
Expand Down Expand Up @@ -378,10 +411,6 @@
<available property="commons.logging.present"
classname="org.apache.commons.logging.LogFactory"
classpathref="classpath"/>
<!-- this is just a way to check for a TraX implementation -->
<available property="trax.impl.present"
resource="META-INF/services/javax.xml.transform.TransformerFactory"
classpathref="classpath"/>
<available property="xalan.envcheck"
classname="org.apache.xalan.xslt.EnvironmentCheck"
classpathref="classpath" />
Expand Down Expand Up @@ -459,9 +488,13 @@
</and>
</condition>

<available property="swing.present"
classname="javax.swing.ImageIcon"
classpathref="classpath"/>
<condition property="swing.present">
<or>
<isset property="jdk1.2+" />
<available classname="javax.swing.ImageIcon"
classpathref="classpath"/>
</or>
</condition>

<condition property="wsdl.found">
<or>
Expand Down Expand Up @@ -681,6 +714,17 @@

</target>

<!-- Creates jar of test utility classes -->
<target name="test-jar"
depends="compile-tests"
description="--> creates the Apache Ant Test Utilties jar">

<jar destfile="${build.lib}/${name}-testutil.jar"
basedir="${build.tests}">
<patternset refid="useful.tests" />
</jar>
</target>

<!--
===================================================================
Create the essential distribution that can run Apache Ant
Expand Down Expand Up @@ -757,16 +801,12 @@
<copy todir="${dist.lib}" file="${lib.dir}/README"/>

<copy todir="${dist.docs}">
<fileset dir="${docs.dir}">
<exclude name="**/images/**"/>
</fileset>
<fileset dir="${docs.dir}" excludes="${unfiltered.files}"/>
<filterchain refid="ant.filters"/>
</copy>

<copy todir="${dist.docs}" filtering="false">
<fileset dir="${docs.dir}">
<include name="**/images/**"/>
</fileset>
<fileset dir="${docs.dir}" includes="${unfiltered.files}"/>
</copy>

<copy todir="${dist.dir}">
Expand Down Expand Up @@ -1037,6 +1077,12 @@
targetfile="${build.javadocs}/packages.html" >
<srcfiles dir= "${java.dir}" includes="**/*.java"/>
</uptodate>
<uptodate property="tests.javadoc.notrequired"
targetfile="${build.tests.javadocs}/packages.html" >
<srcfiles dir= "${tests.dir}">
<patternset refid="useful.tests" />
</srcfiles>
</uptodate>
</target>

<target name="javadocs" depends="prepare, javadoc_check"
Expand Down Expand Up @@ -1067,6 +1113,26 @@
</javadoc>
</target>

<target name="test-javadocs" depends="prepare, javadoc_check"
unless="tests.javadoc.notrequired"
description="--> creates the API documentation for test utilities">
<mkdir dir="${build.tests.javadocs}"/>
<javadoc useexternalfile="yes"
destdir="${build.tests.javadocs}"
author="true"
version="true"
locale="en"
windowtitle="${Name} Test Utilities"
doctitle="${Name}">

<fileset dir="${tests.dir}">
<patternset refid="useful.tests" />
</fileset>

<bottom>Copyright &#169; 2000-${year} Apache Software Foundation. All Rights Reserved.</bottom>
</javadoc>
</target>

<!--
===================================================================
Compile testcases
Expand Down Expand Up @@ -1171,6 +1237,7 @@
<exclude name="${regexp.package}/RegexpTest.java" />
<exclude name="${optional.package}/AbstractXSLTLiaisonTest.java" />
<exclude name="${ant.package}/types/AbstractFileSetTest.java" />
<exclude name="${ant.package}/types/selectors/BaseSelectorTest.java" />

<!-- helper classes, not testcases -->
<exclude name="org/example/**" />
Expand Down Expand Up @@ -1217,9 +1284,11 @@
<!-- these tests need to be localised before being ran???? -->
<exclude name="${optional.package}/PvcsTest.java" />

<!-- ehm, this is not really a TraX test but rather a xalan2 test..-->
<!-- These tests need a TraX implementation like xalan2 or saxon -->
<exclude name="${optional.package}/TraXLiaisonTest.java"
unless="xalan2.present"/>
unless="trax.impl.present"/>
<exclude name="${optional.package}/XsltTest.java"
unless="trax.impl.present"/>

<!-- needs BSF to work -->
<exclude name="${optional.package}/XalanLiaisonTest.java"
Expand Down
Loading

0 comments on commit a9aa75a

Please sign in to comment.