Stanimir Stamenkov <[EMAIL PROTECTED]> wrote on 09/24/2007 07:51:36 PM:

> 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:

That's roughly what we do for compiling Xerces itself, except that it's
done through an Ant task [1] (which extends javac).

> >   -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]

[1]
http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java?revision=447706&view=markup


Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]


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

Reply via email to