ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Jorre <rjo...@ip.lu>
Subject JDK1.3 - Missing Class Files
Date Fri, 27 Oct 2000 11:43:59 GMT
I am still using ant 1.1 which so far has worked perfectly for me.

I am working in Linux RH6.2 (gnome) on an intel machine

I have changed to using jdk 1.3 from jdk1.2.2 and I now find that although 
I get no error messages after a build  there are no class files both with 
the SUN 1.3 and the IBM 1.3.

I can do a normal compile on each file using jdk1.3

When I change back to jdk1.2.2 everything works perfectly.

If I leave a couple of class files in the directory the result is that ant 
does know that it only needs to compile the other files.

If I do have to change to ant 1.2 should I use the rpm.noarch files in the 
bin ant download?

Bye Ralph

Here is my ant run file:

#!/bin/sh
#export PATH=/opt/IBMJava2-13/bin:${PATH}
export PATH=/usr/local/jdk/jdk1.2.2/bin:${PATH}
export ANT_HOME=/usr/local/ant/jakarta-ant
#export JAVA_HOME=/opt/IBMJava2-13
export JAVA_HOME=/usr/local/jdk/jdk1.2.2
export PATH=${PATH}:${ANT_HOME}/bin
export 
CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar:${JAVA_HOME}/lib/dt.jar
ant -buildfile /home/ralph/simulation/repast/ant/simulation.xml $1

Here is my xml file

<project name="simulation" default="compile" 
basedir="/usr/home/home/ralph/simulation">
<target name="init">
<tstamp/>
<property name="source" value="repast/source/" />
<property name="code"  value="repast/code/" />
<property name="debug"  value="on" />
</target>
<target name="prepare" depends="init">
<mkdir dir="${code}" />
</target>
<target name="build" depends="init">
<javac srcdir="${source}" 
destdir="${code}" 
classpath="/home/ralph/simulation/repast/code/:/usr/local/Repast/repast/lib/ 
repast.jar:/usr/local/Repast/repast/lib/colt.jar:/usr/local/Repast/repast/li 
b/jgl3.1.0.jar:/usr/local/Repast/repast/lib/plot.jar:/usr/local/Repast/repas 
t/lib/jmf.jar:/usr/local/Repast/repast/lib/jcchart.jar:/usr/local/Repast/rep 
ast/lib/mediaplayer.jar:/usr/local/Repast/repast/lib/multiplayer.jar:/usr/lo 
cal/Repast/repast/lib/sound.jar:/usr/local/Repast/repast/lib/excelaccessor_R 
untime.jar:/usr/local/Repast/repast/lib/sound.jar:/home/ralph/corejava:/home 
/ralph/ToolsVersion1.0/jdbc6.5-1.2.jar:/home/ralph/ToolsVersion1.0/jsdk.jar" 

ebug="on"/>

</target>

<target name="release" depends="init">
<javac srcdir="${source}" 
destdir="${code}" 
classpath="/home/ralph/simulation/repast/code/:/usr/local/Repast/repast/lib/ 
repast.jar:/usr/local/Repast/repast/lib/colt.jar:/usr/local/Repast/repast/li 
b/jgl3.1.0.jar:/usr/local/Repast/repast/lib/plot.jar:/usr/local/Repast/repas 
t/lib/jmf.jar:/usr/local/Repast/repast/lib/jcchart.jar:/usr/local/Repast/rep 
ast/lib/mediaplayer.jar:/usr/local/Repast/repast/lib/multiplayer.jar:/usr/lo 
cal/Repast/repast/lib/sound.jar:/usr/local/Repast/repast/lib/excelaccessor_R 
untime.jar:/usr/local/Repast/repast/lib/sound.jar:/home/ralph/corejava:/home 
/ralph/ToolsVersion1.0/jdbc6.5-1.2.jar:/home/ralph/ToolsVersion1.0/jsdk.jar" 

ebug="off"/>
</target>
<target name="rebuild" depends="init,clean,prepare,build">
</target>
<target name="dist" depends="init,clean,prepare,release">
<chmod src="jar" perm="ugo+rx" />
<jar jarfile="jar/simulation.jar"
basedir="${code}"
includes="**/*.class" />
<chmod src="jar/simulation.jar" perm="ugo+rx" />
</target>
<target name="clean" depends="init">
<deltree dir="code" />
</target>
</project>

Here is the verbose output from ant:

Buildfile: /home/ralph/simulation/repast/ant/simulation.xmlSetting project 
property: ant.java.version -> 1.3Detected Java Version: 1.3Detected OS: 
Linux +User task: expand     org.apache.tools.ant.taskdefs.Expand +User 
task: javac     org.apache.tools.ant.taskdefs.Javac +User task: 
keysubst     org.apache.tools.ant.taskdefs.KeySubst +User task: 
copyfile     org.apache.tools.ant.taskdefs.Copyfile +User task: 
gzip     org.apache.tools.ant.taskdefs.GZip +User task: 
javadoc     org.apache.tools.ant.taskdefs.Javadoc +User task: 
jar     org.apache.tools.ant.taskdefs.Jar +User task: 
property     org.apache.tools.ant.taskdefs.Property +User task: 
rename     org.apache.tools.ant.taskdefs.Rename +User task: 
filter     org.apache.tools.ant.taskdefs.Filter +User task: 
copydir     org.apache.tools.ant.taskdefs.Copydir +User task: 
cvs     org.apache.tools.ant.taskdefs.Cvs +User task: 
chmod     org.apache.tools.ant.taskdefs.Chmod +User task: 
java     org.apache.tools.ant.taskdefs.Java +User task: 
renameext     org.apache.tools.ant.taskdefs.optional.RenameExtensions +User 
task: available     org.apache.tools.ant.taskdefs.Available +User task: 
deltree     org.apache.tools.ant.taskdefs.Deltree +User task: 
ant     org.apache.tools.ant.taskdefs.Ant +User task: 
exec     org.apache.tools.ant.taskdefs.Exec +User task: 
fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF +User task: 
taskdef     org.apache.tools.ant.taskdefs.Taskdef +User task: 
tar     org.apache.tools.ant.taskdefs.Tar +User task: 
mkdir     org.apache.tools.ant.taskdefs.Mkdir +User task: 
delete     org.apache.tools.ant.taskdefs.Delete +User task: 
zip     org.apache.tools.ant.taskdefs.Zip +User task: 
echo     org.apache.tools.ant.taskdefs.Echo +User task: 
tstamp     org.apache.tools.ant.taskdefs.Tstamp +User task: 
replace     org.apache.tools.ant.taskdefs.Replace +User task: 
get     org.apache.tools.ant.taskdefs.Get +User task: 
rmic     org.apache.tools.ant.taskdefs.Rmic +User task: 
javadoc2     org.apache.tools.ant.taskdefs.JavadocSetting project property: 
java.runtime.name -> Java(TM) 2 Runtime Environment, Standard 
EditionSetting project property: sun.boot.library.path -> 
/opt/IBMJava2-13/jre/binSetting project property: java.vm.version -> 
1.3.0Setting project property: java.vm.vendor -> IBM CorporationSetting 
project property: java.vendor.url -> http://www.ibm.com/Setting project 
property: path.separator -> :Setting project property: java.vm.name -> 
Classic VMSetting project property: file.encoding.pkg -> sun.ioSetting 
project property: java.vm.specification.name -> Java Virtual Machine 
SpecificationSetting project property: user.dir -> 
/usr/home/home/ralph/simulationSetting project property: 
java.runtime.version -> 1.3.0Setting project property: java.fullversion -> 
J2RE 1.3.0 IBM build cx130-20000815 (JIT enabled: jitc)Setting project 
property: java.awt.graphicsenv -> sun.awt.X11GraphicsEnvironmentSetting 
project property: os.arch -> x86Setting project property: java.io.tmpdir -> 
/tmpSetting project property: line.separator -> Setting project property: 
java.vm.specification.vendor -> Sun Microsystems Inc.Setting project 
property: java.awt.fonts -> Setting project property: os.name -> 
LinuxSetting project property: ant.home -> 
/usr/local/ant/jakarta-antSetting project property: java.library.path -> 
/opt/IBMJava2-13/jre/bin:/opt/IBMJava2-13/jre/bin/classic::/usr/libSetting 
project property: java.specification.name -> Java Platform API 
SpecificationSetting project property: java.class.version -> 46.0Setting 
project property: os.version -> 2.2.14-5.0Setting project property: 
user.home -> /home/ralphSetting project property: user.timezone -> 
Europe/ParisSetting project property: java.awt.printerjob -> 
sun.awt.motif.PSPrinterJobSetting project property: file.encoding -> 
ISO-8859-1Setting project property: java.specification.version -> 
1.2Setting project property: java.class.path -> 
/usr/local/ant/jakarta-ant/lib/moo.jar:/usr/local/ant/jakarta-ant/lib/ant.ja 
r:/usr/local/ant/jakarta-ant/lib/xml.jar:/opt/IBMJava2-13/lib/classes.zip:/o 
pt/IBMJava2-13/lib/tools.jar::/opt/IBMJava2-13/lib/tools.jar:/opt/IBMJava2-1 
3/lib/dt.jarSetting project property: user.name -> ralphSetting project 
property: java.vm.specification.version -> 1.0Setting project property: 
java.home -> /opt/IBMJava2-13/jreSetting project property: user.language -> 
enSetting project property: java.specification.vendor -> Sun Microsystems 
Inc.Setting project property: java.vm.info -> J2RE 1.3.0 IBM build 
cx130-20000815 (JIT enabled: jitc)Setting project property: java.version -> 
1.3.0Setting project property: java.ext.dirs -> 
/opt/IBMJava2-13/jre/lib/extSetting project property: sun.boot.class.path 
-> 
/opt/IBMJava2-13/jre/lib/rt.jar:/opt/IBMJava2-13/jre/lib/i18n.jar:/opt/IBMJa 
va2-13/jre/classesSetting project property: java.vendor -> IBM 
CorporationSetting project property: file.separator -> /Setting project 
property: java.vendor.url.bug -> Setting project property: java.compiler -> 
jitcSetting project property: sun.io.unicode.encoding -> UnicodeBigSetting 
project property: user.region -> USSetting ro project property: ant.file -> 
/home/ralph/simulation/repast/ant/simulation.xmlSetting project property: 
basedir -> /usr/home/home/ralph/simulationProject base dir set to: 
/usr/home/home/ralph/simulationSetting project property: source -> 
repast/source/Setting project property: code -> repast/code/Setting project 
property: debug -> on +Target: init   +Task: tstampSetting project 
property: DSTAMP -> 20001027Setting project property: TSTAMP -> 1306Setting 
project property: TODAY -> October 27 2000   +Task: propertySetting project 
property: source -> repast/source/   +Task: propertySetting project 
property: code -> repast/code/   +Task: propertySetting project property: 
debug -> on +Target: prepare   +Task: mkdir +Target: build   +Task: javac 
+Target: release   +Task: javac +Target: rebuild +Target: dist   +Task: 
chmod   +Task: jar   +Task: chmod +Target: clean   +Task: deltreeBuild 
sequence for target `build' is [init, build]Complete build sequence is 
[init, build, release, clean, prepare, rebuild, dist]Executing Target: 
initExecuting Target: buildCompiling 4 source files to 
/usr/home/home/ralph/simulation/repast/codePerforming a Modern 
CompileCompleted in 1 seconds


Mime
View raw message