ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cuillandre frederic <frederic.cuillan...@airweb.fr>
Subject Re: proguard error !!!
Date Tue, 17 Jul 2007 06:46:03 GMT


> On 7/16/07, cuillandre frederic <frederic.cuillandre@airweb.fr> wrote:
> > thanks Peter,
> > it is now working.
> > just a few things . i hope it will be the last of the day :-)
> >
> > according to the documentation, we can do:
> >
> >     <javac sourcepath="" srcdir="${src}"
> >
> >          destdir="${build}" >
> >     <include name="**/*.java"/>
> >     <exclude name="**/Example.java"/>
> >   </javac>
> >
> >
> > my build.xml is
> >
> > ...
> > <target name="compile" description="Compilation target">
> >     <javac srcdir="${src}" destdir="${build}">
> >         <exclude name="${src}/ClassA.java"/>
> >         <exclude name="${src}/ClassB.java"/>
> >         <exclude name="${src}/applets/bridge/*.java"/>
> >     </javac>
> > </target>
> > ...
> 1)
> the <exclude name="xx"> should be relative to the srcdir(s) and
> not absolute. so you should use <exclude name="ClassA.java">
> 2)
> if one of the java sources compiled refer to the excluded
> classes (for example ClassC = public class ClassC { ClassA a;})
> the compiler will resolve and compile ClassA.
> 
> Peter

thank Peter

Regards

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