ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ricksworld2k" <ricksworl...@yahoo.com>
Subject Re: Package alignment and different directories
Date Wed, 10 Dec 2003 00:22:49 GMT
Thank you, John, for your concise and effective advice. Things are 
working fine now!

-Rick

--- In apache-ant@yahoogroups.com, John.Butorac@R... wrote:
> Modify <javac destdir="C:\project"> to <javac 
destdir="C:\project\common\classes">
> 
> 
> 
> "ricksworld2k" <ricksworld2k@y...>
> 12/08/2003 04:19 PM
> Please respond to "Ant Users List"
> 
>  
>         To:     ant-user@j...
>         cc: 
>         Subject:        Package alignment and different directories
> 
> 
> I am having trouble setting up Ant to properly place compiled code 
> into the appropriate directory. I need to separate common classes 
for 
> work to be done by another team and need to access them via package 
> alignment. After compilation, the compiled Java class is in the 
wrong 
> directory:
> 
> project
>   com
>     program
>       device
>         Widget.class  <-- I *don't* want it here.
> 
> project
>   common
>     classes
>       com
>         program
>           device
>             Widget.java
>             Widget.class  <-- I want it here.
> 
> 
> <target name="compile">
>   <javac destdir="C:\project">
>     <src path="C:\project"/>
>     <classpath>
>       <pathelement path="C:\project;C:\project\common\classes"/>
>     </classpath>
>   </javac>
> </target>
> 
> Any suggestions/corrections?  TIA!
> 
> -Rick
> 
> 
> 
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: user-unsubscribe@a...
> For additional commands, e-mail: user-help@a...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message