You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Timothy Reaves <tr...@silverfields.com> on 2000/06/27 02:25:55 UTC

Beginners question

    I have created a build.xml file, and when I run ant, the output is:
[treaves@double teikade]$ ant
Buildfile: build.xml
Project base dir set to: /home/treaves/dev/teikade
Executing Target: init
Executing Target: prepare
Executing Target: compile
Compiling 190 source files to /opt/classes/teikade
Performing a Modern Compile
Completed in 1 seconds

However, no class files are generated.  Could someone point me in the
direction I nned to take to correct this?  Thanks.



Re: Beginners question

Posted by Erik Meade <em...@geekfarm.org>.
You could try adding

<property name="build.compiler" value="classic"/>

to your build.xml.  As mentioned in another message, this wont be
as fast as jikes.

Erik Meade

At 08:54 PM 6/26/2000 -0400, you wrote:
>I have downloaded the latest ant, and the result is the same.  And by the way,
>I am using SDK 1.3, so modern should be fine.
>
>Peter Donald wrote:
>
> > At 08:25  26/6/00 -0400, you wrote:
> > >    I have created a build.xml file, and when I run ant, the output is:
> > >[treaves@double teikade]$ ant
> > >Buildfile: build.xml
> > >Project base dir set to: /home/treaves/dev/teikade
> > >Executing Target: init
> > >Executing Target: prepare
> > >Executing Target: compile
> > >Compiling 190 source files to /opt/classes/teikade
> > >Performing a Modern Compile
> > >Completed in 1 seconds
> > >
> > >However, no class files are generated.  Could someone point me in the
> > >direction I nned to take to correct this?  Thanks.
> >
> > well depends on when you got the ant distribution. Older version simply
> > ignored modern compile so you will have to do one of following
> > * get jikes (recomended) and change compiler property to jikes
> > * get new version of ant (also recomended)
> > * use classic compile via setting property (very slow but you don't have to
> > download anything more)
> >
> > Cheers,
> >
> > Pete
> >
> > *------------------------------------------------------*
> > | "Nearly all men can stand adversity, but if you want |
> > | to test a man's character, give him power."          |
> > |       -Abraham Lincoln                               |
> > *------------------------------------------------------*


Re: Beginners question

Posted by Peter Donald <do...@mad.scientist.com>.
At 08:58  27/6/00 -0400, you wrote:
>    That is what I am using.  20000627.  And the same problem happens.
With the Sun
>1.3 beta.  Unless I specify clasic build, no class files are produced.

hmmmm

I am using Version Sun JDK 1.3.0 and the 20000627 build and everything runs
fine. The only thing I can suggest is to turn on verbose messages and see
if there is any anomolies and also perhaps send part of it to list 


Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Re: Beginners question

Posted by Timothy Reaves <tr...@silverfields.com>.
    That is what I am using.  20000627.  And the same problem happens.  With the Sun
1.3 beta.  Unless I specify clasic build, no class files are produced.

Peter Donald wrote:

> >My appoligies.  I had just downloaded the latest CVS release dated today.
> Same
> >problem.
>
>

> Timothy,
>         what this means is that you will have to download the cvs version of ant -
> alternatively you can go to
> http://jakarta.apache.org/builds/tomcat/nightly/


Re: Beginners question

Posted by Peter Donald <do...@mad.scientist.com>.
At 12:43  27/6/00 -0400, you wrote:
>Peter Donald wrote:
>
>> >I'm using sun 1.3beta4.
>>
>> Err I was refering to what version of Ant you are using ? CVS copy ? copy
>> bundled with another tool etc
>
>My appoligies.  I had just downloaded the latest CVS release dated today.
Same
>problem.

Egads !!!!!! The source and binary files are from about 2 months ago. Can
someone with access remove ant from tomcat downloads area or at least setup
a script so that it builds it and puts a vaguly new version up every now
and again. No wonder there is so many people confused when using it :P

Timothy,
	what this means is that you will have to download the cvs version of ant -
alternatively you can go to 
http://jakarta.apache.org/builds/tomcat/nightly/

which seems to have an okay version. Thou I noticed it is not mentioned on
any webpages for ant (or am i mistaken ????).

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Re: Beginners question

Posted by Timothy Reaves <tr...@silverfields.com>.
Peter Donald wrote:

> >I'm using sun 1.3beta4.
>
> Err I was refering to what version of Ant you are using ? CVS copy ? copy
> bundled with another tool etc

My appoligies.  I had just downloaded the latest CVS release dated today.  Same
problem.


Re: Beginners question

Posted by Peter Donald <do...@mad.scientist.com>.
At 08:36  27/6/00 -0400, you wrote:
>Peter Donald wrote:
>
>> At 08:54  26/6/00 -0400, you wrote:
>> >I have downloaded the latest ant, and the result is the same.  And by the
>> way,
>> >I am using SDK 1.3, so modern should be fine.
>>
>> Whereabouts did you download it from ?
>>
>> Also make sure you have write access to directory. Other than that I am not
>> sure....
>
>I'm using sun 1.3beta4.

Err I was refering to what version of Ant you are using ? CVS copy ? copy
bundled with another tool etc 

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Re: Beginners question

Posted by Timothy Reaves <tr...@silverfields.com>.
Peter Donald wrote:

> At 08:54  26/6/00 -0400, you wrote:
> >I have downloaded the latest ant, and the result is the same.  And by the
> way,
> >I am using SDK 1.3, so modern should be fine.
>
> Whereabouts did you download it from ?
>
> Also make sure you have write access to directory. Other than that I am not
> sure....

I'm using sun 1.3beta4.


Re: Beginners question

Posted by Peter Donald <do...@mad.scientist.com>.
At 08:54  26/6/00 -0400, you wrote:
>I have downloaded the latest ant, and the result is the same.  And by the
way,
>I am using SDK 1.3, so modern should be fine.

Whereabouts did you download it from ? 

Also make sure you have write access to directory. Other than that I am not
sure....




Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Matching behaviour

Posted by Peter Donald <do...@mad.scientist.com>.
Hi,

RE:
**/test/** Matches all files which have a directory 'test' in their path,
including 'test' as a filename. 

is it worthwhile removing the "including 'test' as a filename" type
behaviour as it feels non-intuitive to me and it is simple enough to have
another pattern following like

**/test

Thoughts ?

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Re: Beginners question

Posted by Peter Donald <do...@mad.scientist.com>.
At 08:49  26/6/00 -0400, you wrote:
>Peter Donald wrote:
>
>>
>> well depends on when you got the ant distribution. Older version simply
>> ignored modern compile so you will have to do one of following
>> * get jikes (recomended) and change compiler property to jikes
>>
>
>Why jikes?  It is my understanding that this is purely a java 1.1 thing.  Is
>that correct?

nope 1.2 aswell (and I assume 1.3 ????)

Why ? Speed - accuracy etc.

I compile close to 300 src files in about 4 seconds with jikes or about
90-100 seconds in classic compile. Jikes is also much more conformiant and
picks up a lot of bugs/features that classic lets through (I think there is
a compiler option for pedantic checking)


Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Re: Beginners question

Posted by Timothy Reaves <tr...@silverfields.com>.
Peter Donald wrote:

>
> well depends on when you got the ant distribution. Older version simply
> ignored modern compile so you will have to do one of following
> * get jikes (recomended) and change compiler property to jikes
>

Why jikes?  It is my understanding that this is purely a java 1.1 thing.  Is
that correct?

> * get new version of ant (also recomended)

Doing this now.


Thanks.


RE: Beginners question

Posted by John Zollinger <jo...@sundog.com>.
> > On Mon, 26 Jun 2000, Timothy Reaves wrote:
> >
> > > I have downloaded the latest ant, and the result is the same.
> > > And by the way, I am using SDK 1.3, so modern should be fine.
> >
> > When you say 'downloaded the latest', is that the latest release, or the
> > latest CVS source? There is a significant difference...
>
> FYI, I just tried it with the latest nightly build
> 'ant-20000626.zip' and have the same result as above, i.e.
> nothing happens for the 'modern' compiler.  If I change
> build.compiler to classic then things seem to build properly.

Ack... never mind, the sun was in my eyes and I didn't notice that I forgot
to update my batch file I was running ant with to point to the new version.
False alarm, sorry. :-(

John Zollinger
V.P. Software Engineering, CTO
Sundog Technologies, Inc.
john.zollinger@sundog.com

http://www.sundog.com/


RE: Beginners question

Posted by John Zollinger <jo...@sundog.com>.
> On Mon, 26 Jun 2000, Timothy Reaves wrote:
>
> > I have downloaded the latest ant, and the result is the same.
> > And by the way, I am using SDK 1.3, so modern should be fine.
>
> When you say 'downloaded the latest', is that the latest release, or the
> latest CVS source? There is a significant difference...

FYI, I just tried it with the latest nightly build 'ant-20000626.zip' and
have the same result as above, i.e. nothing happens for the 'modern'
compiler.  If I change build.compiler to classic then things seem to build
properly.

John Zollinger
V.P. Software Engineering, CTO
Sundog Technologies, Inc.
john.zollinger@sundog.com

http://www.sundog.com/


Re: Beginners question

Posted by Tom Cook <tc...@ardec.com.au>.
On Mon, 26 Jun 2000, Timothy Reaves wrote:

> I have downloaded the latest ant, and the result is the same.  And by the way,
> I am using SDK 1.3, so modern should be fine.

When you say 'downloaded the latest', is that the latest release, or the
latest CVS source? There is a significant difference...

-- 
Tom Cook - Software Engineer

"The brain is a wonderful organ. It starts functioning the moment you get
up in the morning, and does not stop until you get into the office."
	- Robert Frost

LISAcorp - www.lisa.com.au

--------------------------------------------------
38 Greenhill Rd.          Level 3, 228 Pitt Street
Wayville, SA, 5034        Sydney, NSW, 2000

Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
Fax:     +61 8 8271 1199  Fax:     +61 2 9283 0866
--------------------------------------------------


Re: Beginners question

Posted by Timothy Reaves <tr...@silverfields.com>.
I have downloaded the latest ant, and the result is the same.  And by the way,
I am using SDK 1.3, so modern should be fine.

Peter Donald wrote:

> At 08:25  26/6/00 -0400, you wrote:
> >    I have created a build.xml file, and when I run ant, the output is:
> >[treaves@double teikade]$ ant
> >Buildfile: build.xml
> >Project base dir set to: /home/treaves/dev/teikade
> >Executing Target: init
> >Executing Target: prepare
> >Executing Target: compile
> >Compiling 190 source files to /opt/classes/teikade
> >Performing a Modern Compile
> >Completed in 1 seconds
> >
> >However, no class files are generated.  Could someone point me in the
> >direction I nned to take to correct this?  Thanks.
>
> well depends on when you got the ant distribution. Older version simply
> ignored modern compile so you will have to do one of following
> * get jikes (recomended) and change compiler property to jikes
> * get new version of ant (also recomended)
> * use classic compile via setting property (very slow but you don't have to
> download anything more)
>
> Cheers,
>
> Pete
>
> *------------------------------------------------------*
> | "Nearly all men can stand adversity, but if you want |
> | to test a man's character, give him power."          |
> |       -Abraham Lincoln                               |
> *------------------------------------------------------*


Re: Beginners question

Posted by Peter Donald <do...@mad.scientist.com>.
At 08:25  26/6/00 -0400, you wrote:
>    I have created a build.xml file, and when I run ant, the output is:
>[treaves@double teikade]$ ant
>Buildfile: build.xml
>Project base dir set to: /home/treaves/dev/teikade
>Executing Target: init
>Executing Target: prepare
>Executing Target: compile
>Compiling 190 source files to /opt/classes/teikade
>Performing a Modern Compile
>Completed in 1 seconds
>
>However, no class files are generated.  Could someone point me in the
>direction I nned to take to correct this?  Thanks.

well depends on when you got the ant distribution. Older version simply
ignored modern compile so you will have to do one of following
* get jikes (recomended) and change compiler property to jikes
* get new version of ant (also recomended)
* use classic compile via setting property (very slow but you don't have to
download anything more)


Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*