ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: copying files
Date Tue, 03 Jun 2003 13:41:57 GMT
> A until now i just worked with directory's, but maybe it's a 
> pretty good idea 
> to make it a package. Can u give me an example on how to 
> handle if it is a 
> package?
> 
> >
> > <javac
> > 
> srcdir="${sAdministratie}:${sControle}:${sDatabase}:${sDetails
> }:${sDiver
> > sen}:${sGui}:${sPrinter}"
> > 			destdir="${bTemp}"/>
> >
> > >
> > > When i have compiled i've something like this:
> > > - src
> > >
> > >    |_ gui
> > >    |
> > >    |	|_ gui1.java
> > >    |	|_ fgui2.java
> > >    |	|_ filelist.txt
> > >    |
> > >    |_base
> > >    |
> > >    |	|_base1.java
> > >    |	|_base2.java
> > >    |	|_ filelist.txt
> > >
> > > - build
> > >
> > >    |_gui
> > >    |_base
> > >    |_tmp
> > >    |
> > >    |	|_ gui1.java
> > >    |	|_ fgui2.java
> > >    |	|_base1.java
> > >    |	|_base2.java
> > >



/src/gui/gui1.java:

package gui;
public class gui1 { 
    ...
}

/src/gui/fgui2.java:

package gui;
public class fgui2 { 
    ...
}

/src/base/base1.java:

package base;
public class base1 { 
    ...
}

/src/base/base2.java:

package base;
public class base2 { 
    ...
}


/build.xml

<project default="compile">
    <property name="src.dir"     value="src"   />
    <property name="classes.dir" value="build" />

    <target name="compile">
        <javac srcdir="${src.dir}" destdir="${classes.dir}" />
    </target>
</project>




Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message