DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23726>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23726
Ant 1.6beta breaks the javah task with Java 1.4.2
Pierre.Nugues@cs.lth.se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From Pierre.Nugues@cs.lth.se 2003-10-10 15:10 -------
> There must be an older version of Ant in your classpath somewhere.
> Line 348 of Ant 1.6beta is a try statement followed by the reflection
> code needed to work with JDK 1.4.2.
I removed the other version of ant I had and it still does not work. It produces
the same error.
I paste the complete buildfile.
Pierre
--
<project name="LinkGrammar" default="all" basedir=".">
<target name="all" depends="compile_core, compile_swedish, compile_oldenglish,
compile_french, compile_newenglish,
compile_newswedish"/>
<target name="init">
<property name="sourceDir" value="src" />
<property name="templateDir" value="template"/>
<property name="autogenDir" value="../autogenerator"/>
<property name="outputDir" value="classes" />
<property name="linkGrammarDir" value="../link-4.1" />
<property name="cSrcDir" value="../link-4.1/src" />
<property name="classes" value="classes/se/lth/cs" />
<property name="runDir" value="../run" />
</target>
<target name="template" depends="init">
<delete dir="${templateDir}"/>
<delete dir="${outputDir}"/>
<mkdir dir="${templateDir}"/>
<mkdir dir="${outputDir}"/>
<java jar="${autogenDir}/autogenerator.jar" failonerror="true" fork="true">
<arg line="-file template.xml -dtddest ${runDir} -javadest ${templateDir}"/>
</java>
<javac srcdir="${templateDir}" destdir="${outputDir}">
<classpath>
<pathelement location="${autogenDir}/autogenerator.jar"/>
</classpath>
</javac>
<jar destfile="${runDir}/template.jar" basedir="${outputDir}"/>
</target>
<target name="compile_core" depends="init">
<delete dir="${outputDir}"/>
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
<pathelement location="../xerces/xercesImpl.jar"/>
<pathelement location="${autogenDir}/autogenerator.jar"/>
</classpath>
<include name="se/lth/cs/carsimgui/**"/>
</javac>
<jar destfile="${runDir}/carsim.jar" basedir="${outputDir}" >
<manifest>
<attribute name="Main-Class" value="se/lth/cs/carsimgui/CarSim"/>
<attribute name="Class-Path" value=". ../vrml/vrml97.jar
../wordnetjni/java/jar/wnjn.jar ../xerces/xercesImpl.jar
../xerces/xmlParserAPIs.jar ${autogenDir}/autogenerator.jar ./template.jar"/>
</manifest>
</jar>
</target>
<target name="compile_oldenglish" depends="init">
<delete dir="${outputDir}"/>
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
<pathelement location="../wordnetjni/java/classes"/>
<pathelement location="../xerces/xercesImpl.jar"/>
</classpath>
<include name="se/lth/cs/carsim/**"/>
<include name="se/lth/cs/carsim/collision/**"/>
</javac>
<javah classpath="${outputDir}" destdir="${cSrcDir}" force="yes">
<class name="se.lth.cs.carsim.LinkGrammarAPI" />
</javah>
<jar destfile="${runDir}/carsim_oldenglish.jar" basedir="${outputDir}">
<manifest>
<attribute name="Module-Name" value="English"/>
<attribute name="Extract-Class" value="se.lth.cs.carsim.Dispatch"/>
<attribute name="Extract-Method" value="extractInformationToXML"/>
</manifest>
</jar>
</target>
<target name="compile_swedish" depends="init">
<delete dir="${outputDir}"/>
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
<pathelement location="../xerces/xercesImpl.jar"/>
</classpath>
<include name="se/lth/cs/carsimnlpsv/**"/>
</javac>
<jar destfile="${runDir}/carsim_swedish.jar" basedir="${outputDir}">
<manifest>
<attribute name="Module-Name" value="Swedish"/>
<attribute name="Extract-Class" value="se.lth.cs.carsimnlpsv.Dispatch"/>
<attribute name="Extract-Method" value="extractInformationToXML"/>
</manifest>
</jar>
</target>
<target name="compile_newenglish" depends="template">
<delete dir="${outputDir}"/>
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
<pathelement location="${runDir}/template.jar"/>
<pathelement location="../wordnetjni/java/classes"/>
</classpath>
<include name="se/lth/cs/carsimnlpen/**"/>
</javac>
<jar destfile="${runDir}/carsim_newenglish.jar" basedir="${outputDir}">
<manifest>
<attribute name="Module-Name" value="New English"/>
<attribute name="Extract-Class"
value="se.lth.cs.carsimnlpen.EnglishExtracter"/>
<attribute name="Extract-Method" value="extractInformationToXML"/>
</manifest>
</jar>
</target>
<target name="compile_newswedish" depends="template">
<delete dir="${outputDir}"/>
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
<pathelement location="${runDir}/template.jar"/>
</classpath>
<include name="se/lth/cs/carsimnlpsv2/**"/>
</javac>
<jar destfile="${runDir}/carsim_newswedish.jar" basedir="${outputDir}">
<manifest>
<attribute name="Module-Name" value="New Swedish"/>
<attribute name="Extract-Class"
value="se.lth.cs.carsimnlpsv2.SwedishExtracter"/>
<attribute name="Extract-Method" value="extractInformationToXML"/>
</manifest>
</jar>
</target>
<target name="compile_french" depends="init">
<delete dir="${outputDir}"/>
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
</classpath>
<include name="se/lth/cs/carsimnlpfr/**"/>
</javac>
<jar destfile="${runDir}/carsim_french.jar" basedir="${outputDir}">
<manifest>
<attribute name="Module-Name" value="French"/>
<attribute name="Extract-Class" value="se.lth.cs.carsimnlpfr.Dispatch"/>
<attribute name="Extract-Method" value="extractInformationToXML"/>
</manifest>
</jar>
</target>
<!-- This section is to add a fast build feature -->
<target name="fastCompile" depends="init">
<javac srcdir="${sourceDir}" destdir="${outputDir}">
<classpath>
<pathelement location="."/>
<pathelement location="../log4j/jakarta-log4j-1.2.6/dist/lib/log4j-1.2.6.jar"/>
<pathelement location="../wordnetjni/java/classes"/>
<pathelement location="../xerces/xercesImpl.jar"/>
</classpath>
<include name="se/lth/cs/carsim/**"/>
<include name="se/lth/cs/carsim/collision/**"/>
<include name="se/lth/cs/carsimgui/**"/>
<include name="se/lth/cs/carsimnlpfr/**"/>
</javac>
</target>
<target name="fastBuild" depends="fastCompile">
<copy todir="${runDir}" overwrite="yes">
<fileset dir="${outputDir}" />
</copy>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|