ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ricksworld2k" <ricksworl...@yahoo.com>
Subject Package alignment and different directories
Date Mon, 08 Dec 2003 22:19:23 GMT
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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message