[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Building a Project with Ant using Xerces and JDK 1.4.2
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2007-09-25 5:15:02
Message-ID: OF99CC22CC.881BC3FF-ON85257361.001C4CEF-85257361.001CD85D () ca ! ibm ! com
[Download RAW message or body]

Stanimir Stamenkov <s7an10@netscape.net> 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: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

[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: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic