Re: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread Steve Loughran

S I wrote:

Hi

I wish there was Ant Core Task support for Subversion.  I have 
downloaded bunch of 3rd party utilities, althought they accomplish the 
job somewhat clumsily, they'll do for now.  Is there going to be support 
for Subversion soon?




support for subversion will be via an antlib library (in its own 
namespace) that wraps the svn executable. The library is already 
available in ant's SVN repository, and works with ant 1.6.5, I believe. 
you do need to check out and build it yourself.


-steve

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



doesn't work as expected

2005-09-07 Thread Rebhan, Gilbert


Hi,

antcontrib 1.0b2 / ant 1.6.5 

i want to use the antcontrib / assert task in my script to ensure
that a for loop is only executed if a property has been set.

so i have =



   

...
  



in my script.

Now i tested the worst case, when the property hasn't been set.
But the for loop runs nevertheless.
The property bla has not been set =



   

...
  



I also put the assert into  ...  with same
result.

>From what i read in the antcontrib manual, assert tests for
existence of the given property ?!

Any hints ?

OK i may use if / then ... but assert would be shorter.


Gilbert

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



xslt task

2005-09-07 Thread Ana Gaspar Martínez

Hello,
I'm using the mtxslt task to generate differents html files from an 
unique xml file. It runs when i put the in and out attributes of mtxslt. 
I'd like to generate 3 files for each xml file paced under a determinate 
folder. I've tryied using basedir attribute but this only generates the 
first html file.


How can i do that?


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



wanted ideas for managing project build dependancies..

2005-09-07 Thread Mark Lybarger
our build system is growing rapidly. we've gone from using wsad to build 
each war/ear manually, to having ant scripts for building each item, and 
wrapping it together with a main "autobuild" project which basically checks 
out each sub project and calls it's build. now we're looking to integrate 
versioning into the mix. there's maybe 14 projects total, and continually 
growning. the structure is something like:

autobuild
project1Web
project1
project2Web
project2

where project2Web is the war project, and project2 is the ear project. for 
no good reason, we have each war wrapped into an ear. this practice 
continues today. back on track. like i mentioned, the autobuild ties 
everything together. it does a cvs co on each project, then iterates the 
builds. we've recently branched project2Web and project2 to allow new 
development to happen while testing finishes up on a version of project1Web 
and project2Web that are slated for production soon. so, i'm looking for a 
good method for managing the cvs branch dependancies of projects. 
project1Web is still in the head, as there's no real reason to branch yet. 
one suggestion made from our group was to branch the autobuild project, and 
in there checkin the build.xml or properties file containing a list of the 
needed cvs branches.

any thoughts / ideas on managing the revolving cvs dependancies in projects 
like this is much appreciated.!


Re: wanted ideas for managing project build dependancies..

2005-09-07 Thread jfuller
Mark Lybarger <[EMAIL PROTECTED]> wrote ..
> our build system is growing rapidly. we've gone from using wsad to build
> each war/ear manually, to having ant scripts for building each item, and
> wrapping it together with a main "autobuild" project which basically checks
> out each sub project and calls it's build. now we're looking to integrate
> versioning into the mix. there's maybe 14 projects total, and continually
> growning. the structure is something like:
> 
> autobuild
> project1Web
> project1
> project2Web
> project2
> 
> where project2Web is the war project, and project2 is the ear project.
> for 
> no good reason, we have each war wrapped into an ear. this practice 
> continues today. back on track. like i mentioned, the autobuild ties 
> everything together. it does a cvs co on each project, then iterates the
> builds. we've recently branched project2Web and project2 to allow new 
> development to happen while testing finishes up on a version of project1Web
> and project2Web that are slated for production soon. so, i'm looking for
> a 
> good method for managing the cvs branch dependancies of projects. 
> project1Web is still in the head, as there's no real reason to branch yet.
> one suggestion made from our group was to branch the autobuild project,
> and 
> in there checkin the build.xml or properties file containing a list of
> the 
> needed cvs branches.
> 
> any thoughts / ideas on managing the revolving cvs dependancies in projects
> like this is much appreciated.!


use Ivy !

http://jayasoft.org/ivy

gl, Jim Fuller

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

Re: wanted ideas for managing project build dependancies..

2005-09-07 Thread Yves Martin

  Soon to come 'el4ant':  http://sourceforge.net/projects/el4ant

 Regards,
-- 
Yves Martin


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



RE: doesn't work as expected

2005-09-07 Thread Burgess, Benjamin
An easier solution would be to pull the for loop into its own target and
then add an if="your-property" to the target.

Ben

-Original Message-
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 6:11 AM
To: user@ant.apache.org
Subject:  doesn't work as expected



Hi,

antcontrib 1.0b2 / ant 1.6.5 

i want to use the antcontrib / assert task in my script to ensure
that a for loop is only executed if a property has been set.

so i have =



   

...
  



in my script.

Now i tested the worst case, when the property hasn't been set.
But the for loop runs nevertheless.
The property bla has not been set =



   

...
  



I also put the assert into  ...  with same
result.

>From what i read in the antcontrib manual, assert tests for
existence of the given property ?!

Any hints ?

OK i may use if / then ... but assert would be shorter.


Gilbert

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



**
This message, including any attachments, contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, please contact sender immediately by reply 
e-mail and destroy all copies.  You are hereby notified that any disclosure, 
copying, or distribution of this message, or the taking of any action based on 
it, is strictly prohibited.
TIAA-CREF
**


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



multiple excludes clause ??

2005-09-07 Thread Rambo Mahajan
Hi
 
I would like 2 excludes clause in zipfileset tag:
 
 
 
also I want to addexcludes="**/myproj/**/AConstants.class"
 
Can someone tell me how to do this ?
 
Thanks
Ram


-
 Click here to donate to the Hurricane Katrina relief effort.

Re: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread Mark Lybarger
On 9/6/05, S I <[EMAIL PROTECTED]> wrote:
> 
> Hi
> 
> I wish there was Ant Core Task support for Subversion. I have downloaded
> bunch of 3rd party utilities, althought they accomplish the job somewhat
> clumsily, they'll do for now. Is there going to be support for Subversion
> soon?


I don't like that ant core has tasks that ant core doesn't support directly. 
There's too many hoops to jump through to get these "optional" tasks to 
work. IMO, SVN should support that ant task(s) for using its repository.

My 2nd question: I'm modifying my Ant scripts to commit couple of files
> into SVN and then tag the repository. I don't like the limited options of
> SVN in how it handles tagging. I run my build files from my WinXP and
> repository's on a Linux server under Apache. Does Ant have any feature to
> allow me to parse a log file and grep for a revision number, then pass 
> that
> rev# to the "svn copy /trunk /tag/rev#" without resorting to Perl or any
> other scripting language?
> 
> Thanks
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


RE: doesn't work as expected

2005-09-07 Thread Rebhan, Gilbert

Hi, Ben

that's not possible cause the for loop i want
to decorate with assert is an inner loop of another for loop
The property is set in the outer loop.

Checking if property isset ain't necessary, cause if an error occurs
with loadfile (setting the property) build fails automatically.

I just wanted to know how to get assert working correctly
if i need it
 
Gilbert

-Original Message-
From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 3:17 PM
To: Ant Users List
Subject: RE:  doesn't work as expected

An easier solution would be to pull the for loop into its own target and
then add an if="your-property" to the target.

Ben

-Original Message-
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 6:11 AM
To: user@ant.apache.org
Subject:  doesn't work as expected



Hi,

antcontrib 1.0b2 / ant 1.6.5 

i want to use the antcontrib / assert task in my script to ensure
that a for loop is only executed if a property has been set.

so i have =



   

...
  



in my script.

Now i tested the worst case, when the property hasn't been set.
But the for loop runs nevertheless.
The property bla has not been set =



   

...
  



I also put the assert into  ...  with same
result.

>From what i read in the antcontrib manual, assert tests for
existence of the given property ?!

Any hints ?

OK i may use if / then ... but assert would be shorter.


Gilbert

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



**
This message, including any attachments, contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, please contact
sender immediately by reply e-mail and destroy all copies.  You are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly
prohibited.
TIAA-CREF
**


-
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]



Refresh the navigation view from build.xml

2005-09-07 Thread Ana Gaspar Martínez
Is there any mode of refresh the navigation view from the build.xml 
file?? I create folders and files, and there are not visible under i 
refresh the navigation view...


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



Re: Refresh the navigation view from build.xml

2005-09-07 Thread Jeffrey E Care
What navigation view are you talking about?

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


Ana Gaspar Martínez <[EMAIL PROTECTED]> wrote on 09/07/2005 11:37:02 
AM:

> Is there any mode of refresh the navigation view from the build.xml 
> file?? I create folders and files, and there are not visible under i 
> refresh the navigation view...
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Refresh the navigation view from build.xml

2005-09-07 Thread Nicolas Vervelle



Ana Gaspar Martínez wrote:

Is there any mode of refresh the navigation view from the build.xml 
file?? I create folders and files, and there are not visible under i 
refresh the navigation view... 


What navigation view ?

Do you mean under Eclipse ?
If so, just select "Run / Ant build ..." once (select the one with the 
...) and among the options, you have it.





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



Re: Refresh the navigation view from build.xml

2005-09-07 Thread Ana Gaspar Martínez

Nicolas Vervelle wrote:




Ana Gaspar Martínez wrote:

Is there any mode of refresh the navigation view from the build.xml 
file?? I create folders and files, and there are not visible under i 
refresh the navigation view... 



What navigation view ?

Do you mean under Eclipse ?
If so, just select "Run / Ant build ..." once (select the one with the 
...) and among the options, you have it.





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


Yes, under eclipse. I do that you say, but i would like to avoid user to 
make that if it is possible


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



Re: multiple excludes clause ??

2005-09-07 Thread Ninju Bohra
What is the context in which you are using the
 and what have you tried already?

By looking through the ANT docs, I can think of two
options:

1) Add another  sub-element with the
second exclude pattern

2) Use the excludesfile attribute and reference a file
that contains all your exclude patterns

Hope that helps,

Ninju

--- Rambo Mahajan <[EMAIL PROTECTED]> wrote:

> Hi
>  
> I would like 2 excludes clause in zipfileset tag:
>  
>   dir="${build.compile.dir}"
> excludes="**/ejb/**/*.class" />
>  
> also I want to add   
> excludes="**/myproj/**/AConstants.class"
>  
> Can someone tell me how to do this ?
>  
> Thanks
> Ram
> 
>   
> -
>  Click here to donate to the Hurricane Katrina
> relief effort.





__
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: doesn't work as expected

2005-09-07 Thread Ninju Bohra
Let's start from the beginning... did you set the
property ant.enable.asserts when running the target?

--- "Rebhan, Gilbert" <[EMAIL PROTECTED]>
wrote:

> 
> Hi, Ben
> 
> that's not possible cause the for loop i want
> to decorate with assert is an inner loop of another
> for loop
> The property is set in the outer loop.
> 
> Checking if property isset ain't necessary, cause if
> an error occurs
> with loadfile (setting the property) build fails
> automatically.
> 
> I just wanted to know how to get assert working
> correctly
> if i need it
>  
> Gilbert
> 
> -Original Message-
> From: Burgess, Benjamin
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 07, 2005 3:17 PM
> To: Ant Users List
> Subject: RE:  doesn't work as expected
> 
> An easier solution would be to pull the for loop
> into its own target and
> then add an if="your-property" to the target.
> 
> Ben
> 
> -Original Message-
> From: Rebhan, Gilbert
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 07, 2005 6:11 AM
> To: user@ant.apache.org
> Subject:  doesn't work as expected
> 
> 
> 
> Hi,
> 
> antcontrib 1.0b2 / ant 1.6.5 
> 
> i want to use the antcontrib / assert task in my
> script to ensure
> that a for loop is only executed if a property has
> been set.
> 
> so i have =
> 
> 
> 
>
>   
> ...
>   
> 
> 
> 
> in my script.
> 
> Now i tested the worst case, when the property
> hasn't been set.
> But the for loop runs nevertheless.
> The property bla has not been set =
> 
> 
> 
>
>   
> ...
>   
> 
> 
> 
> I also put the assert into  ...
>  with same
> result.
> 
> From what i read in the antcontrib manual, assert
> tests for
> existence of the given property ?!
> 
> Any hints ?
> 
> OK i may use if / then ... but assert would be
> shorter.
> 
> 
> Gilbert
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
**
> This message, including any attachments, contains
> confidential
> information intended for a specific individual and
> purpose, and is
> protected by law.  If you are not the intended
> recipient, please contact
> sender immediately by reply e-mail and destroy all
> copies.  You are
> hereby notified that any disclosure, copying, or
> distribution of this
> message, or the taking of any action based on it, is
> strictly
> prohibited.
> TIAA-CREF
>
**
> 
> 
>
-
> 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]
> 
> 








__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

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



[ANT 1.6.5] performance issue

2005-09-07 Thread BOUSQUET Jeremie
Hello,

I had some performance issues using  task, and I found following post from 
a person who had the same problem:
http://marc.theaimsgroup.com/?t=11189202101&r=1&w=2

It seems problem is not just , but a strong slowdown of .

As no one replied this post, I ask again: why this slowdown between 2 patch 
releases of ant ?
My  call takes nearly 20s to execute for doing not so much, and the whole 
build process 22s for doing many, the ratio does not seem acceptable to me.

Thanks for your help,

Regards,

Jérémie 


Re: Refresh the navigation view from build.xml

2005-09-07 Thread Andrew Goktepe
Click on the parent folder or any folder above that and then press the F5 
key to refresh. Any new folders or files should show up after that.
 -Andrew
 On 9/7/05, Ana Gaspar Martínez <[EMAIL PROTECTED]> wrote: 
> 
> Nicolas Vervelle wrote:
> 
> >
> >
> > Ana Gaspar Martínez wrote:
> >
> >> Is there any mode of refresh the navigation view from the build.xml
> >> file?? I create folders and files, and there are not visible under i
> >> refresh the navigation view...
> >
> >
> > What navigation view ?
> >
> > Do you mean under Eclipse ?
> > If so, just select "Run / Ant build ..." once (select the one with the
> > ...) and among the options, you have it.
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> Yes, under eclipse. I do that you say, but i would like to avoid user to
> make that if it is possible
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


RE: wanted ideas for managing project build dependancies..

2005-09-07 Thread Stephen McConnell

This is an anlib that adds support for transitive dependency management and
general build automation.  It's been validated on sites running over 200
related projects.

http://www.dpml.net/magic/latest

/Steve.



> -Original Message-
> From: Mark Lybarger [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 7 September 2005 8:54 PM
> To: Ant Users List
> Subject: wanted ideas for managing project build dependancies..
> 
> our build system is growing rapidly. we've gone from using 
> wsad to build each war/ear manually, to having ant scripts 
> for building each item, and wrapping it together with a main 
> "autobuild" project which basically checks out each sub 
> project and calls it's build. now we're looking to integrate 
> versioning into the mix. there's maybe 14 projects total, and 
> continually growning. the structure is something like:
> 
> autobuild
> project1Web
> project1
> project2Web
> project2
> 
> where project2Web is the war project, and project2 is the ear 
> project. for no good reason, we have each war wrapped into an 
> ear. this practice continues today. back on track. like i 
> mentioned, the autobuild ties everything together. it does a 
> cvs co on each project, then iterates the builds. we've 
> recently branched project2Web and project2 to allow new 
> development to happen while testing finishes up on a version 
> of project1Web and project2Web that are slated for production 
> soon. so, i'm looking for a good method for managing the cvs 
> branch dependancies of projects. 
> project1Web is still in the head, as there's no real reason 
> to branch yet. 
> one suggestion made from our group was to branch the 
> autobuild project, and in there checkin the build.xml or 
> properties file containing a list of the needed cvs branches.
> 
> any thoughts / ideas on managing the revolving cvs 
> dependancies in projects like this is much appreciated.!
> 


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



Re: Refresh the navigation view from build.xml

2005-09-07 Thread Darin Swanson
Really should be in an Eclipse forum...

Take a look at the Refresh tab for your Ant launch configuration.
No need to do manually what you can set up to do automatically :-)

HTH
Darins




Andrew Goktepe <[EMAIL PROTECTED]> 
09/07/2005 10:29 AM
Please respond to
"Ant Users List"


To
Ant Users List 
cc

Subject
Re: Refresh the navigation view from build.xml






Click on the parent folder or any folder above that and then press the F5 
key to refresh. Any new folders or files should show up after that.
 -Andrew
 On 9/7/05, Ana Gaspar Martínez <[EMAIL PROTECTED]> wrote: 
> 
> Nicolas Vervelle wrote:
> 
> >
> >
> > Ana Gaspar Martínez wrote:
> >
> >> Is there any mode of refresh the navigation view from the build.xml
> >> file?? I create folders and files, and there are not visible under i
> >> refresh the navigation view...
> >
> >
> > What navigation view ?
> >
> > Do you mean under Eclipse ?
> > If so, just select "Run / Ant build ..." once (select the one with the
> > ...) and among the options, you have it.
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> Yes, under eclipse. I do that you say, but i would like to avoid user to
> make that if it is possible
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>



Re: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread Stefan Bodewig
On Wed, 07 Sep 2005, Steve Loughran <[EMAIL PROTECTED]> wrote:

> support for subversion will be via an antlib library (in its own
> namespace) that wraps the svn executable. The library is already
> available in ant's SVN repository, and works with ant 1.6.5,

No, I'm afraid it won't compile against 1.6.5.

Stefan

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



RE: multiple excludes clause ??

2005-09-07 Thread Rainer Noack

Best practise is using nested  elements.


   
   


Cheers
Rainer

> -Original Message-
> From: Rambo Mahajan [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 07, 2005 3:21 PM
> To: user@ant.apache.org
> Subject: multiple excludes clause ??
> 
> 
> Hi
>  
> I would like 2 excludes clause in zipfileset tag:
>  
>   dir="${build.compile.dir}" excludes="**/ejb/**/*.class" />
>  
> also I want to addexcludes="**/myproj/**/AConstants.class"
>  
> Can someone tell me how to do this ?
>  
> Thanks
> Ram
> 
>   
> -
>  Click here to donate to the Hurricane Katrina relief effort.
> 


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



Re: Calling Ant from Java program - Help with ProjectHelper class!]

2005-09-07 Thread Frank Harnack

Hi Stephen,

I use another way to call ant from within a java program and it seems to 
be working.

I call Launcher.main(args) (ant 1.6.4).
I don't know, if this way is  recommended. It is only the result of some 
"experiments".

Maybe your problem doesn't appear, if you use this calling mechanism.

Here is a code example:

##
..

import org.apache.tools.ant.launch.Launcher;

..

// set new security manger to catch System.exit in
//org.apache.tools.ant.Main

// backup current security manager
SecurityManager osm = System.getSecurityManager();

// set special security manager
NoSystemExitSecurityManager nsm = new NoSystemExitSecurityManager();
System.setSecurityManager(nsm);

// start ant launcher
String args[] = {"-buildfile", buildFile,
 "-logfile", antLogFile,
 "startTarget"};

Launcher.main(args);
retVal = 
Integer.parseInt(System.getProperty(NoSystemExitSecurityManager.exitStatusSystemProperty));


// restore security manager
System.setSecurityManager(osm);
##

The special security manger is necessary to prevent, that the calling 
java program exit then ant have finished its work.
I am no expert in using security managers and I don't know if restoring 
it after calling ant is really necessary.

Maybe there is a nicer way to pass the return value too.
Nevertheless here is the code of NoSystemExitSecurityManager:

##
import java.security.Permission;

public class NoSystemExitSecurityManager extends SecurityManager{

public static final String exitStatusSystemProperty = "exitStatus";

/** If a System.exit occurs, this security manger throws a 
SecurityException and
stores the exit status into a system property 
(->exitStatusSystemProperty). **/


public void checkExit(int status) {

System.setProperty(exitStatusSystemProperty,Integer.toString(status));
throw new SecurityException("Please ignore this exception!");
}

public void checkPermission(Permission perm) {

}
}


Regards

Frank

--
Frank Harnack
47269 Duisburg
Deutschland (Germany)

-Ursprüngliche Nachricht-
Von: Stephen Nesbitt [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. September 2005 04:25
An: user@ant.apache.org
Betreff: Calling Ant from Java program - Help with ProjectHelper class!


All:

I am trying to invoke an Ant build from within a java program. The build
system itself includes both:
- a namespace declarations (xmlns:ivy="antlib:fr.jayasoft.ivy.ant") -

- an 
From what I can gather, the basic sequence for invoking ant is the following:

project = new Project()
project.init()
helper = ProjectHelperxxx()
helper.parse( ant, File())

The API docs reference 2 helpers - ProjectHelper2 and ProjectHelperImpl. 
I can't get either to work.


If I use ProjectHelperImpl the parse fails with an "Unexpected attribute
"xmlns:ivy" error. If I remove the remove the namespace declaration the 
parse

suceeds

If I use ProjectHelper2 then I avoid the namespace error, but the import 
fails

with a null pointer exception and an unknown element error.

Anybody have any clues/hints on what I am missing?

Thanks!

-steve
--


Stephen Nesbitt
Senior Configuration Management Engineer
The Cobalt Group
[EMAIL PROTECTED]
x8271



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



Re: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread S I
Thank you guys.  I guess that made my job easier.  I was just about to go to 
Apache and download it.  What version of Ant does it compile against then? 
Do you know?


Original Message Follows
From: Stefan Bodewig <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" 
To: user@ant.apache.org
Subject: Re: No Apache Ant Support for Subversion?  Oh man :(
Date: Wed, 07 Sep 2005 20:01:25 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc8-f36.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Wed, 7 Sep 2005 11:01:37 -0700

Received: (qmail 41730 invoked by uid 500); 7 Sep 2005 18:01:30 -
Received: (qmail 41684 invoked by uid 99); 7 Sep 2005 18:01:30 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by 
apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 11:01:30 -0700

Received: neutral (asf.osuosl.org: local policy)
Received: from [217.160.128.107] (HELO www.samaflost.de) (217.160.128.107)   
 by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 11:01:41 -0700
Received: by www.samaflost.de (Postfix, from userid 1000)id DA97880009F; 
Wed,  7 Sep 2005 20:01:25 +0200 (CEST)

X-Message-Info: JGTYoYF78jGWTGl+4FyDkdYmqZeamyhJBsQUnsQys1o=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Help: 
List-Post: 
List-Id: "Ant Users List" 
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 49938)
References: 
<[EMAIL PROTECTED]><[EMAIL PROTECTED]>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through 
Obscurity, linux)

X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 07 Sep 2005 18:01:37.0851 (UTC) 
FILETIME=[312070B0:01C5B3D6]


On Wed, 07 Sep 2005, Steve Loughran <[EMAIL PROTECTED]> wrote:

> support for subversion will be via an antlib library (in its own
> namespace) that wraps the svn executable. The library is already
> available in ant's SVN repository, and works with ant 1.6.5,

No, I'm afraid it won't compile against 1.6.5.

Stefan

-
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: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread S I
I'm now looking at  not sure how to go about it and I do realize Ant 
is not a script lanugage however, I'm not  sure how to go about my problem 
either except resorting to a scripting language.  I will briefly state my 
problem and please tell me if parsing could be achieved via any Ant task?


I have a text file which is generated by running

c:\>svn update > file.txt.

file.txt's last line is "Updated to revision 20779."

I would like to extrapolate only the numbers and pass it back to : 
${Revision.Number} = 20779


c:\>svn copy -r ${Revision.Number} /trunk  /tag/${Revision.Number}

Is there anyway to do this in Ant?  Looks like I have to write a perl script 
and pass the value back to the Ant script by running 



Original Message Follows
From: James Abley <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" 
To: Ant Users List 
Subject: Re: No Apache Ant Support for Subversion?  Oh man :(
Date: Wed, 07 Sep 2005 07:36:57 +0100
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc10-f40.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Tue, 6 Sep 2005 23:37:11 -0700

Received: (qmail 50368 invoked by uid 500); 7 Sep 2005 06:37:03 -
Received: (qmail 50350 invoked by uid 99); 7 Sep 2005 06:37:03 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by 
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 23:37:03 -0700

Received: pass (asf.osuosl.org: local policy)
Received: from [213.86.197.2] (HELO mail.volantis.com) (213.86.197.2)by 
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 23:37:14 -0700
Received: squid 10.20.30.27 from 10.20.30.21 10.20.30.21 via HTTP with 
MS-WebStorage 6.0.6249

Received: from c-jabley by squid; 07 Sep 2005 07:36:57 +0100
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Help: 
List-Post: 
List-Id: "Ant Users List" 
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
References: <[EMAIL PROTECTED]>
X-Mailer: Ximian Evolution 1.4.6
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 07 Sep 2005 06:37:11.0164 (UTC) 
FILETIME=[93794BC0:01C5B376]


On Wed, 2005-09-07 at 04:37, S I wrote:
> Hi
>
> I wish there was Ant Core Task support for Subversion.  I have downloaded
> bunch of 3rd party utilities, althought they accomplish the job somewhat
> clumsily, they'll do for now.  Is there going to be support for 
Subversion

> soon?
>
> My 2nd question:  I'm modifying my Ant scripts to commit couple of files
> into SVN and then tag the repository.  I don't like the limited options 
of

> SVN in how it handles tagging.  I run my build files from my WinXP and
> repository's on a Linux server under Apache.  Does Ant have any feature 
to
> allow me to parse a log file and grep for a revision number, then pass 
that

> rev# to the "svn copy /trunk /tag/rev#" without resorting to Perl or any
> other scripting language?
>

Have a look at  with filterchains, and then load the output
into your revision property via 

James

> Thanks
>
>
>
> -
> 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: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread Andrew Goktepe
Something like this should work:
 
 



 This loads the contents of the file into the file.txt.contents property, 
then parses the revision number out and sets it in the Revision.Numberproperty.
  is an Ant core task, and  is part of ant-contrib.
 I haven't tested this, so you may have to play around more with the regular 
expression.
 -Andrew

 On 9/7/05, S I <[EMAIL PROTECTED]> wrote: 
> 
> I'm now looking at  not sure how to go about it and I do realize 
> Ant
> is not a script lanugage however, I'm not sure how to go about my problem
> either except resorting to a scripting language. I will briefly state my
> problem and please tell me if parsing could be achieved via any Ant task?
> 
> I have a text file which is generated by running
> 
> c:\>svn update > file.txt.
> 
> file.txt's last line is "Updated to revision 20779."
> 
> I would like to extrapolate only the numbers and pass it back to :
> ${Revision.Number} = 20779
> 
> c:\>svn copy -r ${Revision.Number} /trunk /tag/${Revision.Number}
> 
> Is there anyway to do this in Ant? Looks like I have to write a perl 
> script
> and pass the value back to the Ant script by running 
> 
> 
> Original Message Follows
> From: James Abley <[EMAIL PROTECTED]>
> Reply-To: "Ant Users List" 
> To: Ant Users List 
> Subject: Re: No Apache Ant Support for Subversion? Oh man :(
> Date: Wed, 07 Sep 2005 07:36:57 +0100
> MIME-Version: 1.0
> Received: from mail.apache.org  
> ([209.237.227.199]) 
> by mc10-f40.hotmail.com 
> with Microsoft SMTPSVC(6.0.3790.211); Tue, 6 Sep 2005 23:37:11 -0700
> Received: (qmail 50368 invoked by uid 500); 7 Sep 2005 06:37:03 -
> Received: (qmail 50350 invoked by uid 99); 7 Sep 2005 06:37:03 -
> Received: from asf.osuosl.org  (HELO 
> asf.osuosl.org) 
> (140.211.166.49 ) by
> apache.org  (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 
> 23:37:03 -0700
> Received: pass (asf.osuosl.org : local policy)
> Received: from [213.86.197.2 ] (HELO 
> mail.volantis.com ) 
> (213.86.197.2) 
> by
> apache.org  (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 
> 23:37:14 -0700
> Received: squid 10.20.30.27  from 
> 10.20.30.21 
> 10.20.30.21  via HTTP with
> MS-WebStorage 6.0.6249
> Received: from c-jabley by squid; 07 Sep 2005 07:36:57 +0100
> X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: 
> List-Help: 
> List-Post: 
> List-Id: "Ant Users List" http://user.ant.apache.org>
> >
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
> X-Spam-Check-By: apache.org 
> References: <[EMAIL PROTECTED]>
> X-Mailer: Ximian Evolution 1.4.6
> X-Virus-Checked: Checked by ClamAV on apache.org 
> Return-Path: [EMAIL PROTECTED]
> X-OriginalArrivalTime: 07 Sep 2005 06:37:11.0164 (UTC)
> FILETIME=[93794BC0:01C5B376]
> 
> On Wed, 2005-09-07 at 04:37, S I wrote:
> > Hi
> >
> > I wish there was Ant Core Task support for Subversion. I have downloaded
> > bunch of 3rd party utilities, althought they accomplish the job somewhat
> > clumsily, they'll do for now. Is there going to be support for
> Subversion
> > soon?
> >
> > My 2nd question: I'm modifying my Ant scripts to commit couple of files
> > into SVN and then tag the repository. I don't like the limited options
> of
> > SVN in how it handles tagging. I run my build files from my WinXP and
> > repository's on a Linux server under Apache. Does Ant have any feature
> to
> > allow me to parse a log file and grep for a revision number, then pass
> that
> > rev# to the "svn copy /trunk /tag/rev#" without resorting to Perl or any
> > other scripting language?
> >
> 
> Have a look at  with filterchains, and then load the output
> into your revision property via 
> 
> James
> 
> > Thanks
> >
> >
> >
> > -
> > 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: No Apache Ant Support for Subversion? Oh man :(

2005-09-07 Thread Stefan Bodewig
On Wed, 07 Sep 2005, S. I. <[EMAIL PROTECTED]> wrote:

> What version of Ant does it compile against then? Do you know?

Only a version compiled from SVN's trunk (or CVS HEAD).  Any main
trunk version since about six months I guess.

Ant 1.6.5 was created from a branch which doesn't inlcude some of the
changes needed by the svn antlib.  The changes mostly affect the
cvslib package since the cvs and svn tasks share a bit of code.

Stefan

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



Re: Refresh the navigation view from build.xml

2005-09-07 Thread Nicolas Vervelle



Ana Gaspar Martínez wrote:

Is there any mode of refresh the navigation view from the build.xml 
file?? I create folders and files, and there are not visible under i 
refresh the navigation view...


Do you mean under Eclipse ?
If so, just select "Run / Ant build ..." once (select the one with 
the ...) and among the options, you have it.


Yes, under eclipse. I do that you say, but i would like to avoid user 
to make that if it is possible



Note: you only have to do the "Run / Ant build ..." *once* on each 
workspace.


I am not sure, a few things have change between Eclipse 3.0 and 3.1.
I only have 3.0 right now, so I can't check for 3.1.

A few things you can try :
- add a builder to your project (Right click on project / Properties / 
Builders / New ...) so your build.xml is run.
- I believe there are a few Eclipse Ant tasks in Eclipse, maybe you can 
find one for refresh (I am really not sure)





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



RE: doesn't work as expected

2005-09-07 Thread Rebhan, Gilbert
 
Hi,

Oops ...

thanks for the pointer  ! , 
i overread that in the manual of antcontrib.

The line =
...the Assert task must be 'turned on' using the property
ant.enable.asserts 

should be put between  

With =




and after that



at the beginning of my script, assert works like expected now.

Gilbert


-Original Message-
From: Ninju Bohra [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 6:34 PM
To: Ant Users List
Subject: RE:  doesn't work as expected

Let's start from the beginning... did you set the
property ant.enable.asserts when running the target?


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



RE: Jar task updated a jar without known reason

2005-09-07 Thread Barak Yaish
First of all, thanks for the solution - it works :)

By the way, before I implemented what you've suggested, the situation was that 
only sometimes the jar was touched by ant (in case no class files were updated).
Can you explain why only sometimes the jar touched, and not always (or never)?

Thanks,

Barak.
-Original Message-
From: Andrew Goktepe [mailto:[EMAIL PROTECTED]
Sent: ?? 01 ?? 2005 16:57?
To: Ant Users List
Subject: Re: Jar task updated a jar without known reason

The jar task will do as its told without checking to see if there is already
an up-to-date file, just as with the jar command-line utility.
 Yes, without the update attribute set, the jar file will be re-created each
time.
 -Andrew

 On 9/1/05, Barak Yaish <[EMAIL PROTECTED]> wrote:
>
> First of all, Thanks!
>
> But can you tell WHY Ant touched my jar?
>
> Regarding your second comment, if I'll omit the update flag, the jar will
> be recreated every time the task is executed?
>
> Thanks,
>
> Barak.
>
> -Original Message-
> From: Andrew Goktepe [mailto:[EMAIL PROTECTED]
> Sent: ?? 01 ?? 2005 16:46?
> To: Ant Users List
> Subject: Re: Jar task updated a jar without known reason
>
> You can use the  task to compare timestamps between a set of
> files
> and a target file. In your case, the set of files are your class files,
> and
> the target file is your jar file.
> 
> (your current contents of compile_cli here)
> 
> 
> 
> 
> 
>  basedir="${cli_output}"
> includes="project/manager/tools/CLI/**"
> update="true"
> />
> 
> Also, are you sure you want update="true" on the jar task? This will add
> files to the previously-built jar rather than creating a new one. If you
> remove files from your source, the jar will still keep the outdated files.
> -Andrew
>
> On 9/1/05, Barak Yaish <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > In my build file, javac and jar task are called in order to create a jar
> > for my project.
> > First time these tasks were called, the source files got compiled and a
> > jar was created just fine. Without changing anything in the source
> files, I
> > ran again the tasks.
> > Nothing happened in javac task, as expected, but the jar task changed
> the
> > time stamp of the jar. The question is: why? A check I did rais that the
> Ant
> > change the time stamp of the manifest file, even without changing its
> > content. For some reasons, it is very important to me that the time
> stamp of
> > the jar file wouldn't be changed unless a source file changed.
> > This is how the jar task is written in my build file:
> >
> > 
> >  > basedir="${cli_output}"
> > includes="project/manager/tools/CLI/**"
> > update="true"
> > />
> > 
> >
> > Can someone explain me please how can I avoid such situation?
> >
> > Thanks,
> >
> > Barak.
> >
> >
>
> -
> 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]



ant script autodocumentation

2005-09-07 Thread Alexey Kakunin

hello all.
Seems our ant -script used ofr building product have started to be more 
and more complex.
Of course we wrote some comments in code, but I want to be able to 
generate some sort of documentation, described build process and this 
documentation should be based (ideally) on comments in ant-script.


Is there any solution for ant scripts like JavaDoc or Doxygen for making 
such sort of documentation?


With best Regards,
Alexey Kakunin

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