Very basic newby problem?

2005-09-13 Thread Andy Wickson
Hi,

I am attempting the run the following ant script:



simple example build file







where common is a directory under the root directory (containing the 
build.xml file) that contains some java source files.

When I run the script with the debug option i get the following output:
-start 
clip
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\Program Files\IBM\Java142\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5compiled on
June 2 2005
Setting ro project property: ant.file -> C:\testoutput\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\testoutput\build.xml with URI = 
file:///C:/testoutput/build
.xml
Setting ro project property: ant.project.name  -> 
MyProject
Adding reference: MyProject
Setting ro project property: ant.file.MyProject -> C:\testoutput\build.xml
Project base dir set to: C:\testoutput
+Target:
+Target: compile
Attempting to create object of type 
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
-end
clip

no attempt seems to compile the files and indeed no class files are created.

if i run the command javac common\*.java from the root directory it works 
ok.

I have the following env. variables set:
JAVA_HOME=C:\Program Files\IBM\Java142
ANT_HOME=C:\apache-ant-1.6.5

I assume it must be something quite fundamental but the fact that i see 
javac run independently and Ant is invoked, I can't think what.

Any ideas would be greatly appreciated.

Thanks,
Andy


Re: Very basic newby problem?

2005-09-13 Thread Barry White
When you invoke ant with no arguments, it looks for a file called 
build.xml in the working directory. So build.xml needs to come out of 
common and into the working directory. The relaitive paths that you have 
in the javac task are correct if the build file is up one level (working 
dir).


Try this and see how you get on,

Barry

Andy Wickson wrote:

Hi,

I am attempting the run the following ant script:



simple example build file







where common is a directory under the root directory (containing the 
build.xml file) that contains some java source files.


When I run the script with the debug option i get the following output:
-start 
clip

Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\Program Files\IBM\Java142\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5compiled on
June 2 2005
Setting ro project property: ant.file -> C:\testoutput\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\testoutput\build.xml with URI = 
file:///C:/testoutput/build

.xml
Setting ro project property: ant.project.name  -> 
MyProject

Adding reference: MyProject
Setting ro project property: ant.file.MyProject -> C:\testoutput\build.xml
Project base dir set to: C:\testoutput
+Target:
+Target: compile
Attempting to create object of type 
org.apache.tools.ant.helper.DefaultExecutor

Adding reference: ant.executor
-end
clip

no attempt seems to compile the files and indeed no class files are created.

if i run the command javac common\*.java from the root directory it works 
ok.


I have the following env. variables set:
JAVA_HOME=C:\Program Files\IBM\Java142
ANT_HOME=C:\apache-ant-1.6.5

I assume it must be something quite fundamental but the fact that i see 
javac run independently and Ant is invoked, I can't think what.


Any ideas would be greatly appreciated.

Thanks,
Andy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Very basic newby problem?

2005-09-13 Thread Erskine, Chris
When you are calling Ant, are you giving it a target to execute?  Since
your project tag does not have the 'default' attribute in it, Ant does
not know what target to execute.

Chris Erskine
 
EDS Consulting Services
Colorado Springs, CO 
 
Phone: 719-265-5962
Cell: 719-640-6488


> -Original Message-
> From: Andy Wickson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 13, 2005 6:35 AM
> To: user@ant.apache.org
> Subject: Very basic newby problem?
> 
> Hi,
> 
> I am attempting the run the following ant script:
> 
> 
> 
> simple example build file
> 
> 
> 
> 
> 
> 
> 
> where common is a directory under the root directory (containing the
> build.xml file) that contains some java source files.
> 
> When I run the script with the debug option i get the following
output:
>

-
> start
> clip
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.4 in: C:\Program Files\IBM\Java142\jre
> Detected OS: Windows XP
> Adding reference: ant.ComponentHelper
> Setting ro project property: ant.version -> Apache Ant version
> 1.6.5compiled on
> June 2 2005
> Setting ro project property: ant.file -> C:\testoutput\build.xml
> Adding reference: ant.projectHelper
> Adding reference: ant.parsing.context
> Adding reference: ant.targets
> parsing buildfile C:\testoutput\build.xml with URI =
> file:///C:/testoutput/build
> .xml
> Setting ro project property: ant.project.name
 ->
> MyProject
> Adding reference: MyProject
> Setting ro project property: ant.file.MyProject ->
C:\testoutput\build.xml
> Project base dir set to: C:\testoutput
> +Target:
> +Target: compile
> Attempting to create object of type
> org.apache.tools.ant.helper.DefaultExecutor
> Adding reference: ant.executor
>

--
> ---end
> clip
> 
> no attempt seems to compile the files and indeed no class files are
> created.
> 
> if i run the command javac common\*.java from the root directory it
works
> ok.
> 
> I have the following env. variables set:
> JAVA_HOME=C:\Program Files\IBM\Java142
> ANT_HOME=C:\apache-ant-1.6.5
> 
> I assume it must be something quite fundamental but the fact that i
see
> javac run independently and Ant is invoked, I can't think what.
> 
> Any ideas would be greatly appreciated.
> 
> Thanks,
> Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Very basic newby problem?

2005-09-13 Thread Andy Wickson
Thanks for the input - it was due to the lack of a default target
Thanks.
Regards
Andy

On 9/13/05, Erskine, Chris <[EMAIL PROTECTED]> wrote:
> 
> When you are calling Ant, are you giving it a target to execute? Since
> your project tag does not have the 'default' attribute in it, Ant does
> not know what target to execute.
> 
> Chris Erskine
> 
> EDS Consulting Services
> Colorado Springs, CO
> 
> Phone: 719-265-5962
> Cell: 719-640-6488
> 
> 
> > -Original Message-
> > From: Andy Wickson [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 13, 2005 6:35 AM
> > To: user@ant.apache.org
> > Subject: Very basic newby problem?
> >
> > Hi,
> >
> > I am attempting the run the following ant script:
> >
> > 
> > 
> > simple example build file
> > 
> >
> > 
> > 
> > 
> > 
> >
> > where common is a directory under the root directory (containing the
> > build.xml file) that contains some java source files.
> >
> > When I run the script with the debug option i get the following
> output:
> >
> 
> -
> > start
> > clip
> > Apache Ant version 1.6.5 compiled on June 2 2005
> > Buildfile: build.xml
> > Adding reference: ant.PropertyHelper
> > Detected Java version: 1.4 in: C:\Program Files\IBM\Java142\jre
> > Detected OS: Windows XP
> > Adding reference: ant.ComponentHelper
> > Setting ro project property: ant.version -> Apache Ant version
> > 1.6.5compiled on
> > June 2 2005
> > Setting ro project property: ant.file -> C:\testoutput\build.xml
> > Adding reference: ant.projectHelper
> > Adding reference: ant.parsing.context
> > Adding reference: ant.targets
> > parsing buildfile C:\testoutput\build.xml with URI =
> > file:///C:/testoutput/build
> > .xml
> > Setting ro project property: ant.project.name 
>  ->
> > MyProject
> > Adding reference: MyProject
> > Setting ro project property: ant.file.MyProject ->
> C:\testoutput\build.xml
> > Project base dir set to: C:\testoutput
> > +Target:
> > +Target: compile
> > Attempting to create object of type
> > org.apache.tools.ant.helper.DefaultExecutor
> > Adding reference: ant.executor
> >
> 
> --
> > ---end
> > clip
> >
> > no attempt seems to compile the files and indeed no class files are
> > created.
> >
> > if i run the command javac common\*.java from the root directory it
> works
> > ok.
> >
> > I have the following env. variables set:
> > JAVA_HOME=C:\Program Files\IBM\Java142
> > ANT_HOME=C:\apache-ant-1.6.5
> >
> > I assume it must be something quite fundamental but the fact that i
> see
> > javac run independently and Ant is invoked, I can't think what.
> >
> > Any ideas would be greatly appreciated.
> >
> > Thanks,
> > Andy
>


RE: Very basic newby problem?

2005-09-13 Thread Kinjal
how to use ant in clear case
write procedure asap


LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
[EMAIL PROTECTED]
5th Floor, Spectra Bldg.,
Hiranandani Business Park,
Powai, Mumbai-400076.
Maharashtra, India.
tel: +912255567349
mobile: +919867240708



-Original Message-
From: Andy Wickson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 18:05
To: user@ant.apache.org
Subject: Very basic newby problem?


Hi,

I am attempting the run the following ant script:



simple example build file







where common is a directory under the root directory (containing the
build.xml file) that contains some java source files.

When I run the script with the debug option i get the following output:
-sta
rt
clip
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\Program Files\IBM\Java142\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5compiled
on
June 2 2005
Setting ro project property: ant.file -> C:\testoutput\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\testoutput\build.xml with URI =
file:///C:/testoutput/build
.xml
Setting ro project property: ant.project.name  ->
MyProject
Adding reference: MyProject
Setting ro project property: ant.file.MyProject -> C:\testoutput\build.xml
Project base dir set to: C:\testoutput
+Target:
+Target: compile
Attempting to create object of type
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor

-end
clip

no attempt seems to compile the files and indeed no class files are created.

if i run the command javac common\*.java from the root directory it works
ok.

I have the following env. variables set:
JAVA_HOME=C:\Program Files\IBM\Java142
ANT_HOME=C:\apache-ant-1.6.5

I assume it must be something quite fundamental but the fact that i see
javac run independently and Ant is invoked, I can't think what.

Any ideas would be greatly appreciated.

Thanks,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Failing a "Successful" build

2005-09-13 Thread Greg Akins
I am developing some Eclipse Plugins.

Because of Eclipse Plugin architecture, the Ant files to build the project need
to be run from Eclipse's antRunner

So my Ant build file includes a  task to call Eclipse and launch 
antRunner.

Consequenty, if the core build.xml that antRunner is executing fails, I get a
"BUILD FAILED" message to the console.

However, the  task will have executed successfully and the wrapping ant
build will show "BUILD SUCCESS"

Anyone have some advice for capturing that failure (I'm running from
CruiseControl which is why I need to capture this in a "wrapping" build.

Any help is greatly appreciated.

Greg Akins
Insomnia Consulting
www.insomnia-consulting.org

-
This mail sent through IMP: http://horde.org/imp/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Very basic newby problem?

2005-09-13 Thread RADEMAKERS Tanguy
Hello Kinjal,

What are you trying to do? What have you ried so far? What is/isn't working?

/t 

>-Original Message-
>From: Kinjal [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, September 13, 2005 3:32 PM
>To: Ant Users List; [EMAIL PROTECTED]
>Subject: RE: Very basic newby problem?
>
>how to use ant in clear case
>write procedure asap
>
>
>LionBridge Technologies Pvt. Ltd.
>Kinjal Vohra
>SCM/Build Engineer
>[EMAIL PROTECTED]
>5th Floor, Spectra Bldg.,
>Hiranandani Business Park,
>Powai, Mumbai-400076.
>Maharashtra, India.
>tel: +912255567349
>mobile: +919867240708
>


smime.p7s
Description: S/MIME cryptographic signature


, using trouble

2005-09-13 Thread Aliaksandr Voitau

|Hi.


 



   
   
   


While trying to invoke this target from java code i get the following error:

taskdef class my.pkg.Sample cannot be found,

although i set ${lib} from java code using setProperty(...) right before 
executing target "target-name".

However, if i'll just paste  content to :

||
   
*
   *|*|
   
|*|


or just put ${lib} to property file everything works fine, or even just 
nest  into .


So,  seems to resolve nested elements' properties only on the time 
of the first parsing by ProjectHelper's parse(...), but not on executing 
particular target, using that path, when previously undefined properties 
became available. Is it correct behaviour?

Couldn't find any explanation in available documentation.
|

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Find - is there parallel ant task?

2005-09-13 Thread Barak Yaish
Hello,
 
I would like to find a set of files, which are newer than a certain file (or 
time stamp). Is this possible to be done using ant?
 
Thanks,
 
Barak.


Re: Find - is there parallel ant task?

2005-09-13 Thread Matt Benson
--- Barak Yaish <[EMAIL PROTECTED]> wrote:

> Hello,
>  
> I would like to find a set of files, which are newer
> than a certain file (or time stamp). Is this
> possible to be done using ant?

Yes.

>  
> Thanks,

You're welcome.
-Matt
>  
> Barak.
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Find - is there parallel ant task?

2005-09-13 Thread Ninju Bohra
Strange subject line...
 
To get only the files newer than a certain date, try using a nested  
selector on a 
 


Barak Yaish <[EMAIL PROTECTED]> wrote:
Hello,

I would like to find a set of files, which are newer than a certain file (or 
time stamp). Is this possible to be done using ant?

Thanks,

Barak.





-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Find - is there parallel ant task?

2005-09-13 Thread Antoine Levy-Lambert
Barak Yaish wrote:

>Hello,
> 
>I would like to find a set of files, which are newer than a certain file (or 
>time stamp). Is this possible to be done using ant?
> 
>Thanks,
> 
>Barak.
>
>  
>
What you want is possible using filesets, selectors, and the pathconvert
task.
Look at the Concepts and Types section of the manual.

What you want is roughly something like





 



myfileset is ${myfileset.asproperty}


Cheers,

Antoine

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Find - is there parallel ant task?

2005-09-13 Thread Barak Yaish
Thanks.

What I meant to write in the subject was: Is there parallel ant task to the 
Unix utility named find?

But thanks, anyway.

-Original Message-
From: Ninju Bohra [mailto:[EMAIL PROTECTED]
Sent: ?? 13 ?? 2005 18:23?
To: Ant Users List
Subject: Re: Find - is there parallel ant task?

Strange subject line...

To get only the files newer than a certain date, try using a nested  
selector on a 



Barak Yaish <[EMAIL PROTECTED]> wrote:
Hello,

I would like to find a set of files, which are newer than a certain file (or 
time stamp). Is this possible to be done using ant?

Thanks,

Barak.




   
-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Find - is there parallel ant task?

2005-09-13 Thread Ninju Bohra
You know based upon your response I would guess that you work for Microsoft
 
Microsoft Joke #1: http://members.aol.com/godx2/humor/assorted/microsoft1.html
 
Good day all,
 
Ninju

Matt Benson <[EMAIL PROTECTED]> wrote:
--- Barak Yaish wrote:

> Hello,
> 
> I would like to find a set of files, which are newer
> than a certain file (or time stamp). Is this
> possible to be done using ant?

Yes.

> 
> Thanks,

You're welcome.
-Matt
> 
> Barak.
> 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Failing a "Successful" build

2005-09-13 Thread Steve Loughran

Greg Akins wrote:

I am developing some Eclipse Plugins.

Because of Eclipse Plugin architecture, the Ant files to build the project need
to be run from Eclipse's antRunner

So my Ant build file includes a  task to call Eclipse and launch 
antRunner.

Consequenty, if the core build.xml that antRunner is executing fails, I get a
"BUILD FAILED" message to the console.

However, the  task will have executed successfully and the wrapping ant
build will show "BUILD SUCCESS"

Anyone have some advice for capturing that failure (I'm running from
CruiseControl which is why I need to capture this in a "wrapping" build.


if you want the nested failure to propagate, set failonerror="true" in 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



, using trouble

2005-09-13 Thread Aliaksandr Voitau

Hi,
here is a piece of my buildfile.






  
  
  


While trying to invoke this target from java code i get the following 
error:


taskdef class my.pkg.Sample cannot be found,

although i set ${lib} from java code using setProperty(...) right before 
executing target "target-name".

However, if i'll just paste  content to :


  
   
  
  
   


or just put ${lib} to property file everything works fine, or even just 
nest  into .


So,  seems to resolve nested elements' properties only on the time 
of the first parsing by ProjectHelper's parse(...), but not on executing 
particular target, using that path, when previously undefined properties 
became available. Is it correct behaviour?

Couldn't find any explanation in available documentation.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



moving directories

2005-09-13 Thread Rizwan Merchant
 

Hi,

I'm trying to move directories that have a certain pattern in their name to
another directory using the command below

 











 

So for example, I would like to move all directories (and all of their
contents) that have name of the pattern "UHM-*" to a backup directory. The
above command does move the directories over to the backup dir but not all
of the contents of the directories. It leaves behind the directories UHM-*
in the original directory and also creates the same in the backup directory.

 

Can anyone please tell me why the above command does not execute
successfully?

 

Thanks.

 

 

 

Rizwan Merchant

Software Developer

Alpha-IT Technologies

416-449-2166

[EMAIL PROTECTED]

 

 



Re: Find - is there parallel ant task?

2005-09-13 Thread Jeffrey E Care
Ninju Bohra <[EMAIL PROTECTED]> wrote on 09/13/2005 11:37:02 AM:

> You know based upon your response I would guess that you work for 
Microsoft
> 
> Microsoft Joke #1: 
http://members.aol.com/godx2/humor/assorted/microsoft1.html

I found it to more along the lines of the typical hacker response to a 
poorly-worded inquiry.

http://www.catb.org/~esr/faqs/smart-questions.html


-- 
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)

RE: moving directories

2005-09-13 Thread Bhadra, Jatin
I am guessing here. Is there some process keeping a lock on those files or
folders that left behind in source directory?

Jatin Bhadra
www.cmware.co.uk

-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 17:07
To: 'Ant Users List'
Subject: moving directories


 

Hi,

I'm trying to move directories that have a certain pattern in their name to
another directory using the command below

 











 

So for example, I would like to move all directories (and all of their
contents) that have name of the pattern "UHM-*" to a backup directory. The
above command does move the directories over to the backup dir but not all
of the contents of the directories. It leaves behind the directories UHM-*
in the original directory and also creates the same in the backup directory.

 

Can anyone please tell me why the above command does not execute
successfully?

 

Thanks.

 

 

 

Rizwan Merchant

Software Developer

Alpha-IT Technologies

416-449-2166

[EMAIL PROTECTED]

 

 



The following companies are subsidiary companies of the Legal & General Group 
Plc which are authorised and regulated by the Financial Services Authority for 
advising and arranging the products shown: Legal & General Partnership Services 
Limited (insurance and mortgages), Legal & General Insurance Limited 
(insurance), Legal & General Assurance Society Limited (life assurance, 
pensions and investments), Legal & General Unit Trust Managers Limited and 
Legal & General Portfolio Management Services Limited (investments).

They are registered in England under numbers shown. 
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 
4TP. 

Legal & General Partnership Services Limited: 5045000 Legal & General Assurance 
Society Limited: 166055 Legal & General (Unit Trust Managers) Limited: 1009418 
Legal &general (Portfolio Management Services) Limited: 2457525 Legal & General 
Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers shown. 
You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General Assurance 
Society Limited: 117659 Legal & General (Unit Trust Managers) Limited: 119273 
Legal &general (Portfolio Management Services) Limited: 146786 Legal & General 
Insurance Limited: 202050


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: moving directories

2005-09-13 Thread Kinjal
Read the examples of fileset in Apache Ant document and do the changes as
per it. It should work.

Including the file name in your script should work.

Thanks and Regards,
Kinjal Vohra





LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
[EMAIL PROTECTED]
5th Floor, Spectra Bldg.,
Hiranandani Business Park,
Powai, Mumbai-400076.
Maharashtra, India.
tel: +912255567349
mobile: +919867240708



-Original Message-
From: Bhadra, Jatin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 22:01
To: 'Ant Users List'
Subject: RE: moving directories


I am guessing here. Is there some process keeping a lock on those files or
folders that left behind in source directory?

Jatin Bhadra
www.cmware.co.uk

-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 17:07
To: 'Ant Users List'
Subject: moving directories




Hi,

I'm trying to move directories that have a certain pattern in their name to
another directory using the command below















So for example, I would like to move all directories (and all of their
contents) that have name of the pattern "UHM-*" to a backup directory. The
above command does move the directories over to the backup dir but not all
of the contents of the directories. It leaves behind the directories UHM-*
in the original directory and also creates the same in the backup directory.



Can anyone please tell me why the above command does not execute
successfully?



Thanks.







Rizwan Merchant

Software Developer

Alpha-IT Technologies

416-449-2166

[EMAIL PROTECTED]







The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services Limited
(investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N
4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal &general (Portfolio Management Services) Limited:
2457525 Legal & General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal &general (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: , using trouble

2005-09-13 Thread Andrew Goktepe
That looks like the correct behavior to me. This is analogous to properties, 
which are set once and cannot be changed again. 

On 9/13/05, Aliaksandr Voitau <[EMAIL PROTECTED]> wrote: 
> 
> Hi,
> here is a piece of my buildfile.
> 
> 
> 
> 
> 
> 
>  classname="my.pkg.Sample">
> 
> 
> 
> 
> While trying to invoke this target from java code i get the following
> error:
> 
> taskdef class my.pkg.Sample cannot be found,
> 
> although i set ${lib} from java code using setProperty(...) right before
> executing target "target-name".
> However, if i'll just paste  content to :
> 
> 
>  classname="my.pkg.Sample">
> 
> 
> 
> 
> 
> 
> or just put ${lib} to property file everything works fine, or even just
> nest  into .
> 
> So,  seems to resolve nested elements' properties only on the time
> of the first parsing by ProjectHelper's parse(...), but not on executing
> particular target, using that path, when previously undefined properties
> became available. Is it correct behaviour?
> Couldn't find any explanation in available documentation.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: , using trouble

2005-09-13 Thread Antoine Levy-Lambert
Hello Aliaksandr,

this sounds like bug 25777, which was fixed in Ant 1.6.3,
Which version of ant are you using ?


Cheers,

Antoine

http://issues.apache.org/bugzilla/show_bug.cgi?id=25777

Aliaksandr Voitau wrote:

> Hi,
> here is a piece of my buildfile.
>
> 
> 
> 
>
> 
>  classname="my.pkg.Sample">
>   
>   
> 
>
> While trying to invoke this target from java code i get the following
> error:
>
> taskdef class my.pkg.Sample cannot be found,
>
> although i set ${lib} from java code using setProperty(...) right
> before executing target "target-name".
> However, if i'll just paste  content to :
>
> 
>  classname="my.pkg.Sample">
>
>   
>   
>
> 
>
> or just put ${lib} to property file everything works fine, or even
> just nest  into .
>
> So,  seems to resolve nested elements' properties only on the
> time of the first parsing by ProjectHelper's parse(...), but not on
> executing particular target, using that path, when previously
> undefined properties became available. Is it correct behaviour?
> Couldn't find any explanation in available documentation.
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: , using trouble

2005-09-13 Thread Andrew Goktepe
It looks like the problem occurs within a single build script. The bug 
mentioned applies only when you make a call to another script using .

On 9/13/05, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: 
> 
> Hello Aliaksandr,
> 
> this sounds like bug 25777, which was fixed in Ant 1.6.3,
> Which version of ant are you using ?
> 
> 
> Cheers,
> 
> Antoine
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=25777
> 
> Aliaksandr Voitau wrote:
> 
> > Hi,
> > here is a piece of my buildfile.
> >
> > 
> > 
> > 
> >
> > 
> >  > classname="my.pkg.Sample">
> > 
> > 
> > 
> >
> > While trying to invoke this target from java code i get the following
> > error:
> >
> > taskdef class my.pkg.Sample cannot be found,
> >
> > although i set ${lib} from java code using setProperty(...) right
> > before executing target "target-name".
> > However, if i'll just paste  content to :
> >
> > 
> >  > classname="my.pkg.Sample">
> > 
> > 
> > 
> > 
> > 
> >
> > or just put ${lib} to property file everything works fine, or even
> > just nest  into .
> >
> > So,  seems to resolve nested elements' properties only on the
> > time of the first parsing by ProjectHelper's parse(...), but not on
> > executing particular target, using that path, when previously
> > undefined properties became available. Is it correct behaviour?
> > Couldn't find any explanation in available documentation.
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Scoped variables in macrodefs using entity includes.

2005-09-13 Thread Davy Toch
Just wanted to share our (temporary) solution we currently use to have 
scoped variables in macrodefs. Not ideal, but it currently works.


build.xml:



]>


 

 
   
   &uid;.test : ${&uid;.test}
   
 



macrodef.xml



]>


 
   
   
 
 &uid;.test : ${&uid;.test}
   
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: , using trouble

2005-09-13 Thread Aliaksandr Voitau

It's a single build script.
Though it may behave like property does, it looks really confusing, that 
I assign undefined property "${lib}" to pathelement's location 
attribute, define it later, supposing that when it will be used, e.g. 
referenced by id, it'll be resolved. As a result, I see insted of required

lib_location/sample.jar
is
absolute_path_to_current_dir\{lib}\sample.jar


Thanks, Alex.


Andrew Goktepe wrote:
It looks like the problem occurs within a single build script. The bug 
mentioned applies only when you make a call to another script using .


On 9/13/05, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: 


Hello Aliaksandr,

this sounds like bug 25777, which was fixed in Ant 1.6.3,
Which version of ant are you using ?


Cheers,

Antoine

http://issues.apache.org/bugzilla/show_bug.cgi?id=25777

Aliaksandr Voitau wrote:



Hi,
here is a piece of my buildfile.











While trying to invoke this target from java code i get the following
error:

taskdef class my.pkg.Sample cannot be found,

although i set ${lib} from java code using setProperty(...) right
before executing target "target-name".
However, if i'll just paste  content to :









or just put ${lib} to property file everything works fine, or even
just nest  into .

So,  seems to resolve nested elements' properties only on the
time of the first parsing by ProjectHelper's parse(...), but not on
executing particular target, using that path, when previously
undefined properties became available. Is it correct behaviour?
Couldn't find any explanation in available documentation.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running a task between this hour and this hour

2005-09-13 Thread duvelbier-tsmets

Running the stats on our code is a rather lenghty process (currently +/-70 
minutes)...
I therefore consider to run the targets only at night.
Would someone have an hint on how to evaluate the current time and set a flag 
if it is between say
: 10 PM and 6:00 AM ?

Tx,

\T,

--
Any fool can write code that a computer can understand. 
Good programmers write code that humans can understand.
   Martin Fowler 
T. : +32 (0)2 742 05 94
M. : +32 (0)497 44 68 12
@  : [EMAIL PROTECTED]
Do you skype too ... ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: moving directories

2005-09-13 Thread Rizwan Merchant

Thanks for the responses. There are no locks that I am aware of.

Kinjal, can you elaborate on that please? Which "file name" should I
include? I want all files under those directories to be moved along with the
directory. I have defined my fileset as 

 


Does that not include all directories, subdirectories and files under the
directory I want moved?


Rizwan Merchant
Software Developer
Alpha-IT Technologies
416-449-2166
[EMAIL PROTECTED]
 
-Original Message-
From: Kinjal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 12:39 PM
To: Ant Users List
Subject: RE: moving directories

Read the examples of fileset in Apache Ant document and do the changes as
per it. It should work.

Including the file name in your script should work.

Thanks and Regards,
Kinjal Vohra





LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
[EMAIL PROTECTED]
5th Floor, Spectra Bldg.,
Hiranandani Business Park,
Powai, Mumbai-400076.
Maharashtra, India.
tel: +912255567349
mobile: +919867240708



-Original Message-
From: Bhadra, Jatin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 22:01
To: 'Ant Users List'
Subject: RE: moving directories


I am guessing here. Is there some process keeping a lock on those files or
folders that left behind in source directory?

Jatin Bhadra
www.cmware.co.uk

-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 17:07
To: 'Ant Users List'
Subject: moving directories




Hi,

I'm trying to move directories that have a certain pattern in their name to
another directory using the command below















So for example, I would like to move all directories (and all of their
contents) that have name of the pattern "UHM-*" to a backup directory. The
above command does move the directories over to the backup dir but not all
of the contents of the directories. It leaves behind the directories UHM-*
in the original directory and also creates the same in the backup directory.



Can anyone please tell me why the above command does not execute
successfully?



Thanks.







Rizwan Merchant

Software Developer

Alpha-IT Technologies

416-449-2166

[EMAIL PROTECTED]







The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services Limited
(investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N
4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal &general (Portfolio Management Services) Limited:
2457525 Legal & General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal &general (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: , using trouble

2005-09-13 Thread Dominique Devienne
The time at which ${lib} is resolved is not when you refid it, but
when you id it, i.e. when the control flow of Ant defines the 
the first time. This is when the 'lib' property must be defined in
order for your path to be valid.

Ensuring that a property is defined before its first use can be done
many different ways, but the two main ones are defining/loading the
property in the same context before (top-level or within a target), or
by having then in different targets with appropriate dependencies
between them. --DD

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Scoped variables in macrodefs using entity includes.

2005-09-13 Thread Dominique Devienne
I don't see how this really helps, I'm sorry ;-)

The problem is when you invoke *several times* a macrodef that uses
 internally. You would need to use a different prefix (that
what your entity is equivalent to) for the different runs of the same
macro to use different property names.

Which is why the 'canonical' work-around is to base the name of the
s used on some likely-to-be-unique param of the macro
itself, and do [EMAIL PROTECTED] to reference the 'internal' property.

One could also of course have the macro require an extra param to be
used as the uniq key or prefix to be used by internal properties, but
that's pushing on a client of the macro something she shouldn't be
aware of. --DD

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running a task between this hour and this hour

2005-09-13 Thread Ninju Bohra
One way is to use the  task with a custom pattern to contain only the 
hour (in 24hour format).  Then using the  task (from the ant-contrib 
project) along with the a condition (like the  and  
also from ant-contrib or write your own ) to control the setting 
of a property (called "isLateNight")
 
Do all the above in a depends target and protect the worker targets with 
if=isLateNight
 
I think that makes sense,
 
Ninju

[EMAIL PROTECTED] wrote:

Running the stats on our code is a rather lenghty process (currently +/-70 
minutes)...
I therefore consider to run the targets only at night.
Would someone have an hint on how to evaluate the current time and set a flag 
if it is between say
: 10 PM and 6:00 AM ?

Tx,

\T,

--
Any fool can write code that a computer can understand. 
Good programmers write code that humans can understand.
Martin Fowler 
T. : +32 (0)2 742 05 94
M. : +32 (0)497 44 68 12
@ : [EMAIL PROTECTED]
Do you skype too ... ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Running a task between this hour and this hour

2005-09-13 Thread J. David Boyd
<[EMAIL PROTECTED]> writes:

> Running the stats on our code is a rather lenghty process (currently +/-70
> minutes)...  I therefore consider to run the targets only at night.  Would
> someone have an hint on how to evaluate the current time and set a flag if
> it is between say : 10 PM and 6:00 AM ?
>

If you're on Unix or Linux use cron.  If you're on windows use _Scheduled
Tasks_ from the Control Panel...

Dave in Largo, FL


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Scoped variables in macrodefs using entity includes.

2005-09-13 Thread Davy Toch
Improved version (using ant-contrib). I suppose we'll have to wait for 
ANT 1.7 in order to have a 100% solution for scoped variables.


build.xml :




]>





  
  &test-uid;.test : ${&test-uid;.test}
  
  
  
  
  
  
  
  
  
  
  




macrodef.xml:





]>



  
  

¯odef1-uid;.test : ${¯odef1-uid;.test}
  



  
  

¯odef2-uid;.test : ${¯odef2-uid;.test}
  








I don't see how this really helps, I'm sorry ;-)

The problem is when you invoke *several times* a macrodef that uses
 internally. You would need to use a different prefix (that
what your entity is equivalent to) for the different runs of the same
macro to use different property names.

Which is why the 'canonical' work-around is to base the name of the
s used on some likely-to-be-unique param of the macro
itself, and do [EMAIL PROTECTED] to reference the 'internal' property.

One could also of course have the macro require an extra param to be
used as the uniq key or prefix to be used by internal properties, but
that's pushing on a client of the macro something she shouldn't be
aware of. --DD
 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Scoped variables in macrodefs using entity includes.

2005-09-13 Thread Dominique Devienne
Well, if you use Ant-Contrib's var and side-step property immutability
altogether the problem is moot then, no? In any case, there's no need
for entities. Easier on the eye to simply use an explicit prefix. Of
course one runs the risk of  overriding an existing 'real'
property, but any prefix specific enough, for example the macro name
limits this risk.

Another option is to use the  element added to  by
Peter on Jose's proposal, which I re-discovered reading the code.
Generates a unique attribute name to be used in property names (and
references to these properties).

--DD

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



thread death problem

2005-09-13 Thread Elizabeth Cooper

There seem to many places in the code where there is a clause:

try {
  [...]
} catch (Throwable t) {
  [...]
}

This will cause many problems if t is a thread death.  From the JavaDocs 
for ThreadDeath:


"If ThreadDeath is caught by a method, it is important that it be rethrown 
so that the thread actually dies."


The way around this is to specifically catch "ThreadDeath" and rethrow it.

try {
  [...]
} catch (ThreadDeath td ) {
  throw td;
} catch ( Throwable t ) {
  [...]
}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: moving directories

2005-09-13 Thread Rizwan Merchant

Hi again,
So I investigated further and realized that the command I am using to move
all directories(and their contents) which have name of the pattern UHM-*
moves all the directories and its files across to the new directory, but
leaves the directory structure behind in the old directory. Can anyone tell
me what I am doing wrong?
Thanks.

The command I am using is 


   
 
   



Rizwan Merchant
Software Developer
Alpha-IT Technologies
416-449-2166
[EMAIL PROTECTED]
 

-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 2:35 PM
To: 'Ant Users List'; [EMAIL PROTECTED]
Subject: RE: moving directories


Thanks for the responses. There are no locks that I am aware of.

Kinjal, can you elaborate on that please? Which "file name" should I
include? I want all files under those directories to be moved along with the
directory. I have defined my fileset as 

 


Does that not include all directories, subdirectories and files under the
directory I want moved?


Rizwan Merchant
Software Developer
Alpha-IT Technologies
416-449-2166
[EMAIL PROTECTED]
 
-Original Message-
From: Kinjal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 12:39 PM
To: Ant Users List
Subject: RE: moving directories

Read the examples of fileset in Apache Ant document and do the changes as
per it. It should work.

Including the file name in your script should work.

Thanks and Regards,
Kinjal Vohra





LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
[EMAIL PROTECTED]
5th Floor, Spectra Bldg.,
Hiranandani Business Park,
Powai, Mumbai-400076.
Maharashtra, India.
tel: +912255567349
mobile: +919867240708



-Original Message-
From: Bhadra, Jatin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 22:01
To: 'Ant Users List'
Subject: RE: moving directories


I am guessing here. Is there some process keeping a lock on those files or
folders that left behind in source directory?

Jatin Bhadra
www.cmware.co.uk

-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 17:07
To: 'Ant Users List'
Subject: moving directories




Hi,

I'm trying to move directories that have a certain pattern in their name to
another directory using the command below















So for example, I would like to move all directories (and all of their
contents) that have name of the pattern "UHM-*" to a backup directory. The
above command does move the directories over to the backup dir but not all
of the contents of the directories. It leaves behind the directories UHM-*
in the original directory and also creates the same in the backup directory.



Can anyone please tell me why the above command does not execute
successfully?



Thanks.







Rizwan Merchant

Software Developer

Alpha-IT Technologies

416-449-2166

[EMAIL PROTECTED]







The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services Limited
(investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N
4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal &general (Portfolio Management Services) Limited:
2457525 Legal & General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal &general (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a

Re: Failing a "Successful" build

2005-09-13 Thread Greg Akins

> if you want the nested failure to propagate, set failonerror="true" in 
> 
> 
> 

I had thought that I already did this.. But I double checked and had left it 
out.

Thanks very much.

-
This mail sent through IMP: http://horde.org/imp/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Redirect output of Javac task

2005-09-13 Thread Martin Burger

Hello!

I'm using the Javac task to compile Java sources programmatically. If 
there is an compile error, the Javac tasks (more specific the 
com.sun.tools.javac.Main compiler) prints it's error to the console 
(System.err).


Currently, I'm setting System.err to a new PrintStream just before I 
call Javac.execute(). After that call, I restore the old stream. I think 
this solution is not perfect, at least it is not thread safe. But I 
found no other solution. Does anybody know a better way to bar the 
compiler from printing to the console?


Thanks,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]