Mon, 24 Sep 2007 12:34:13 -0700 (PDT), /Anthony N. Frasso/:

However, while I can see how to set a system property using the java command (or task), I don't see how to set a system property using the javac compiler.

You may try overriding the bootclasspath [1] or prepend the xml-apis.jar to it using -Xbootclasspath/p:<path> option. Although I don't see the later in the online documentation I see it in the help screen issuing javac -X:

  -Xbootclasspath/p:<path>  Prepend to the bootstrap classpath
  -X                        Print a synopsis of nonstandard options

As for Ant I see there's a <compilerarg> element you could use to pass command line arguments to the compiler with the Javac [2] task (the reference is to the Ant 1.7.0 manual but the same is in the 1.6.5 version, too).

[1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#crosscomp-options

[2] http://ant.apache.org/manual/CoreTasks/javac.html

--
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to