this is the first line of my build xml file <property name="build.sysclasspath" value="ignore"/> this is what i see when i run it in the debug mode
setting project property: build.sysclasspath -> ignore setting project property: java.class.path -> D:\jdk1.3.1_02\lib\tools.jar;D:\ja rta-ant-1.4.1\lib\XsdSrcGenTask.jar;D:\jakarta-ant-1.4.1\lib\jaxp.jar;D:\jak ar -ant-1.4.1\lib\jakarta-ant-1.4.1-optional.jar;D:\jakarta-ant-1.4.1\lib\crims on.j ;D:\jakarta-ant-1.4.1\lib\ant.jar;.;D:\DB2\java\db2java.zip;D:\DB2\java\runt ime.zip;D:\DB2\java\sqlj.zip;D:\DB2\bin this part is classpath defined in my system path ;.;D:\DB2\java\db2java.zip;D:\DB2\java\runtime.zip;D:\DB2\java\sqlj.zip;D:\D B2\bin then while the javac task is run, this system classpath show up in the classpath. from the documentation i understand this property to be a task property Again is this to be used just as any other property would be used and defined for the entire build file. That's the way i used it but doesnot help... this line from the documentation confuses me .. The default behavior varies from Ant to Ant task. how do i overide on a task by task basis? or i can do only at a global level for all the tasks ..? Where is the documentation for what's the default behaviour for each task that uses this property ? -----Original Message----- From: Dominique Devienne [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 3:31 PM To: 'Ant Users List' Subject: RE: javac class path It's apparently just a property, so can be set on the command line or in the build file, or a loaded properties or XML files. Whether it's better or not that include{Java|Ant}Runtime, I don't know. I'm surprised it doesn't work for you though... --DD http://jakarta.apache.org/ant/manual/sysclasspath.html PS: As far as 2... Different projects should each have there own classes directory, but that's a different story right. -----Original Message----- From: Menon, Joby [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 4:41 PM To: Ant Users List Subject: RE: javac class path About 1., see includeAntRuntime and includeJavaRuntime attributes , does not help remove the system classpath .. "build.sysclasspath=ignore" should work, but could you please provide me the usage. it looks like a task property , how and where to specify the value. About 2., why would you want to do that? i have different projects to build, but the compiled classes go to same output locations. for one project i want the compile to take the compiled classes into the classpath but for the another project i want to use the jars built out of prior release to be used in the classpath ahead of the current output location classes. thanks -----Original Message----- From: Mike Dougherty [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 2:23 PM To: 'Ant Users List' Subject: RE: javac class path > -----Original Message----- > From: Dominique Devienne [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 15, 2002 2:14 PM > To: 'Ant Users List' > Subject: RE: javac class path > > > About 1., see includeAntRuntime and includeJavaRuntime attributes. > > About 2., why would you want to do that? --DD > > -----Original Message----- > From: Menon, Joby [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 15, 2002 4:09 PM > To: Ant Users List > Subject: javac class path > > 1. How can i let ant know not to use the system classpath > appended/prepended > to the classpath defined in build file via classpath attribute. > > 2. how can i let ant know not to use the destination directory > appended/prepended(to output the classes) set in the javac > target to the > classpath defined in the build file via classpath attribute. > > thanks > I would have thought using "build.sysclasspath=ignore" a better approach? Is there a reason why includeAntRuntime and includeJavaRuntime are better in this case? /mike -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
