You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Rick Yazwinski <ri...@solect.com> on 2000/05/17 14:50:08 UTC

RE: Windows 98? (and now a newbie question..... :)

There were many problems with method prototypes... sorry, but I can't
reproduce it now as I found the binary distribution and blew away my old src
one :(

Now for an ant-newbie question:
Should the javac task build out a similar class file directory structure to
the source structure.  The situation that I'm encountering (to my surprise)
is that I have a source structure like:
	src/com/thinker/event/*.java
	build/classes

When I run the javac task as:
    <javac srcdir="${src.dir}"
           destdir="${build.classes}"
           classpath="${classpath}"
           debug="on"
           deprecation="on"
           optimize="on" >
    </javac>

where src.dir is "src" and build.classes="build/classes" I loose the
com/thinker/event directory structure and all the class files are dumped
into build/classes - which causes my subsequent jar task to fail as it's
looking for class files from com/thinker/event :(

    <jar jarfile="${lib.dir}/${name}.jar"
         basedir="${build.classes}"
         includes="com/**"

Any thoughts?

	Rick...

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> Sent: Tuesday, May 16, 2000 7:06 PM
> To: ant-dev@jakarta.apache.org
> Subject: RE: Windows 98?
>
>
> > -----Original Message-----
> > From: Ken Wood [mailto:kwood@i2.com]
> > Sent: Wednesday, 17 May 2000 5:51
> > To: ant-dev@jakarta.apache.org
> > Subject: Re: Windows 98?
> >
> >
> > Not sure why you'd want to build it...
> > I just grabbed the so-called binaries,
> > since they are just jar files, and I've
> > used them successfully out of the box
> > on Windows 2000, Windows NT, and Solaris
> > 2.5.1 and Solaris 2.6.
> >
> > That is one of the beauties of java, is it not?
> > If you built it on linux, use it on '98...
> >
>
> That is true, indeed. Nevertheless, it would be good to be
> able to build ant
> on all platforms. There may be Win98 users who do not have a
> Linux/NT/Solaris/whatever system to build ant. Perhaps Rick
> can tell us the
> sorts of problems he is encountering.
>
> Conor
>


RE: Windows 98? (and now a newbie question..... :)

Posted by Vitaly Stulsky <vi...@yahoo.com>.
srcdir must point on 'src', not on src/com/...

Vitaly

> -----Original Message-----
> From: Rick Yazwinski [mailto:ricky@solect.com]
> Sent: Wednesday, May 17, 2000 4:46 PM
> To: ant-dev@jakarta.apache.org
> Subject: RE: Windows 98? (and now a newbie question..... :)
> 
> 
> Yep, In fact, if I run
> 	javac -sourcepath src -d build\classes *.java
> javac will build the com\thinker\event structure - which is why I think it
> has something to do with ant's javac taskdef.
> 
> > -----Original Message-----
> > From: Conor MacNeill [mailto:conor@m64.com]
> > Sent: Wednesday, May 17, 2000 9:32 AM
> > To: ant-dev@jakarta.apache.org
> > Subject: RE: Windows 98? (and now a newbie question..... :)
> >
> >
> > > -----Original Message-----
> > > From: Rick Yazwinski [mailto:ricky@solect.com]
> > > Sent: Wednesday, 17 May 2000 22:50
> > > To: ant-dev@jakarta.apache.org
> > > Subject: RE: Windows 98? (and now a newbie question..... :)
> > >
> > >
> > > There were many problems with method prototypes... sorry,
> > but I can't
> > > reproduce it now as I found the binary distribution and blew away
> > > my old src
> > > one :(
> > >
> > > Now for an ant-newbie question:
> > > Should the javac task build out a similar class file directory
> > > structure to
> > > the source structure.  The situation that I'm encountering (to my
> > > surprise)
> > > is that I have a source structure like:
> > > 	src/com/thinker/event/*.java
> > > 	build/classes
> > >
> > > When I run the javac task as:
> > >     <javac srcdir="${src.dir}"
> > >            destdir="${build.classes}"
> > >            classpath="${classpath}"
> > >            debug="on"
> > >            deprecation="on"
> > >            optimize="on" >
> > >     </javac>
> > >
> > > where src.dir is "src" and build.classes="build/classes" I loose the
> > > com/thinker/event directory structure and all the class
> > files are dumped
> > > into build/classes - which causes my subsequent jar task to
> > fail as it's
> > > looking for class files from com/thinker/event :(
> > >
> > >     <jar jarfile="${lib.dir}/${name}.jar"
> > >          basedir="${build.classes}"
> > >          includes="com/**"
> > >
> > > Any thoughts?
> > >
> >
> > Have you got package statements in your .java files? (Soory,
> > only thing I
> > could think of)
> >
> >
> 

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

RE: Windows 98? (and now a newbie question..... :)

Posted by Rick Yazwinski <ri...@solect.com>.
Yep, In fact, if I run
	javac -sourcepath src -d build\classes *.java
javac will build the com\thinker\event structure - which is why I think it
has something to do with ant's javac taskdef.

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@m64.com]
> Sent: Wednesday, May 17, 2000 9:32 AM
> To: ant-dev@jakarta.apache.org
> Subject: RE: Windows 98? (and now a newbie question..... :)
>
>
> > -----Original Message-----
> > From: Rick Yazwinski [mailto:ricky@solect.com]
> > Sent: Wednesday, 17 May 2000 22:50
> > To: ant-dev@jakarta.apache.org
> > Subject: RE: Windows 98? (and now a newbie question..... :)
> >
> >
> > There were many problems with method prototypes... sorry,
> but I can't
> > reproduce it now as I found the binary distribution and blew away
> > my old src
> > one :(
> >
> > Now for an ant-newbie question:
> > Should the javac task build out a similar class file directory
> > structure to
> > the source structure.  The situation that I'm encountering (to my
> > surprise)
> > is that I have a source structure like:
> > 	src/com/thinker/event/*.java
> > 	build/classes
> >
> > When I run the javac task as:
> >     <javac srcdir="${src.dir}"
> >            destdir="${build.classes}"
> >            classpath="${classpath}"
> >            debug="on"
> >            deprecation="on"
> >            optimize="on" >
> >     </javac>
> >
> > where src.dir is "src" and build.classes="build/classes" I loose the
> > com/thinker/event directory structure and all the class
> files are dumped
> > into build/classes - which causes my subsequent jar task to
> fail as it's
> > looking for class files from com/thinker/event :(
> >
> >     <jar jarfile="${lib.dir}/${name}.jar"
> >          basedir="${build.classes}"
> >          includes="com/**"
> >
> > Any thoughts?
> >
>
> Have you got package statements in your .java files? (Soory,
> only thing I
> could think of)
>
>


RE: Windows 98? (and now a newbie question..... :)

Posted by Conor MacNeill <co...@m64.com>.
> -----Original Message-----
> From: Rick Yazwinski [mailto:ricky@solect.com]
> Sent: Wednesday, 17 May 2000 22:50
> To: ant-dev@jakarta.apache.org
> Subject: RE: Windows 98? (and now a newbie question..... :)
>
>
> There were many problems with method prototypes... sorry, but I can't
> reproduce it now as I found the binary distribution and blew away
> my old src
> one :(
>
> Now for an ant-newbie question:
> Should the javac task build out a similar class file directory
> structure to
> the source structure.  The situation that I'm encountering (to my
> surprise)
> is that I have a source structure like:
> 	src/com/thinker/event/*.java
> 	build/classes
>
> When I run the javac task as:
>     <javac srcdir="${src.dir}"
>            destdir="${build.classes}"
>            classpath="${classpath}"
>            debug="on"
>            deprecation="on"
>            optimize="on" >
>     </javac>
>
> where src.dir is "src" and build.classes="build/classes" I loose the
> com/thinker/event directory structure and all the class files are dumped
> into build/classes - which causes my subsequent jar task to fail as it's
> looking for class files from com/thinker/event :(
>
>     <jar jarfile="${lib.dir}/${name}.jar"
>          basedir="${build.classes}"
>          includes="com/**"
>
> Any thoughts?
>

Have you got package statements in your .java files? (Soory, only thing I
could think of)