Problem executing task

2005-08-18 Thread Karunakar Chatla
Hi, I am relatively new to FreeBSD and ANT. I wanted to fire a command on FreeBSD box from a windows box. I am using task to accomplish my task. I have downloaded jsch-0.1.21.jar and copied it to lib folder of ANT. Following is by build file. I am getting following error on running

JVM parameters

2005-08-18 Thread Kenneth Litwak
I just want to know if I have this coded correctly for ant 1.6.0 in order to get a specific amount of memory for the JVM: Is this correct? I'm running a program that s

Re: how to resolve a path from a XML file (XMLTask)

2005-08-18 Thread Anand Krishniyer
Thanks Brian In my case i don't know the number elements in the XML (it can vary) for. e.g I can have or just Brian Agnew wrote: This isn't really an xmltask issue (in which case [EMAIL PROTECTED] is the list to point to). xmltask will just read your XML file 'as is'. How

Re: how to resolve a path from a XML file (XMLTask)

2005-08-18 Thread Brian Agnew
This isn't really an xmltask issue (in which case [EMAIL PROTECTED] is the list to point to). xmltask will just read your XML file 'as is'. However you can solve the below using xmltask using something like (and I haven't tested this but it should give you an idea): and so on, prior t

Re: how to resolve a path from a XML file (XMLTask)

2005-08-18 Thread Anand Krishniyer
Okay let me explain a bit more. I have to read a path from an XML. The XML is constructed by somebody else and he/she knows the path relative to a root dir only. So the path in the XML can be ${myapp1.dir}/common/jsp. The build script that reads this XML can resolve this myapp1.dir dir. So is

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread Matt Benson
This whole discussion should be continued on the userlist user@ant.apache.org . It has long since ceased sounding like a developer list discussion. br, Matt --- "koden (sent by Nabble.com)" <[EMAIL PROTECTED]> wrote: > > When I do the xml_edit.execute(); I get this error: > > [versionupdateta

how to resolve a path from a XML file (XMLTask)

2005-08-18 Thread Anand Krishniyer
Hi I am trying to read a path from an XML file. For e.g here is an XML And the section of the ant build file looks like this inheritAll="true" inheritRefs="true"> The values of the variables myapp1.dir,

Re: Removing duplicate jars from classpath

2005-08-18 Thread Alexey N. Solofnenko
I do it with Jython as following, but, depending on what you actually need to do, it can be done easier by filtering all values via LinkedHashSet: timt asml wrote: Hi, We've recently moved part of our build environment from traditional unix make to ant, and we're encounte

Re: inside doesn't have the expected behavior

2005-08-18 Thread Jeffrey E Care
Because the first one is part of a selector. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Tardif, Sebastien" <[EMAIL PROTECTED]> wrote on 08/18/2005 01:41:31 PM: > This work: > > > > > > >

Re: inside doesn't have the expected behavior

2005-08-18 Thread Matt Benson
I -still- do this occasionally and smack myself really hard afterwards. From the manual: Selectors are available as nested elements within the FileSet. If any of the selectors within the FileSet do not select the file, the file is not considered part of the FileSet. This makes a FileSet equivalen

Re: Removing duplicate jars from classpath

2005-08-18 Thread Matt Benson
--- timt asml <[EMAIL PROTECTED]> wrote: > Hi, > > We've recently moved part of our build environment > from traditional > unix make to > ant, and we're encountering some problems (ant > 1.6.2, by the way) You are encountering problems, or you are anticipating problems? preserves order, so

RE: Sync removing cvs information in target directory

2005-08-18 Thread Matt Benson
A while back Stefan added support to CVS HEAD for a element that should do what you want. It was based on Dominique's code IIRC. -Matt --- Mark Benussi <[EMAIL PROTECTED]> wrote: > Um Rock and roll... thanks for that. > > I will have to get my head round the code as I am > not too good at t

inside doesn't have the expected behavior

2005-08-18 Thread Tardif, Sebastien
This work: But this doesn't: And I received no error message so it's a valid Ant XML. Anybody understand why the second version doesn't work? What's the logic of the test? I'm using ANT 1.6.5 which is the l

Re: Is should be simple...but

2005-08-18 Thread Jeffrey E Care
source="1.4" -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Ninju Bohra <[EMAIL PROTECTED]> wrote on 08/18/2005 01:17:04 PM: > Hello all, > > We are (finally !!!) starting to look at Java 1.5 at > our project site. And the f

Re: Is should be simple...but

2005-08-18 Thread Ivan Ivanov
Hello Ninju, --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > > How do I get 1.4 bytecode emitting using the > task with jdk1.5.0_04 Well, can you try with Regards Ivan Start your day with Yahoo! - make it your home page htt

Is should be simple...but

2005-08-18 Thread Ninju Bohra
Hello all, We are (finally !!!) starting to look at Java 1.5 at our project site. And the first step is to build our code using the 1.5 JDK but in 1.4 compliant mode. After installing jdk1.5.0_04, I modified my to the following: . . Note, the compiler

Re: AW: AW: Workaround for no failonerror

2005-08-18 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: [SNIP] > maybe a nested would be useful > > ... > > mmh javadoc [1,2] sais that it´s there ... Wow, I didn't know anybody even used these in Ant core, much less in extensions. How gratifying. ;) -Matt > > > Jan > > > > [1] > http://jakarta.apache.org/tomcat/

Re: Exec task failed while executing bat which locates in different level directory

2005-08-18 Thread Leon Pu
Hi all, I found the problem can be solved by following build script. Leon --- Leon Pu <[EMAIL PROTECTED]> wrote: > Hi all, > > the exec task always failed while executing a bat which in a > different > level directory compare to basedir. > > Here is the sample file system of my buil

Exec task failed while executing bat which locates in different level directory

2005-08-18 Thread Leon Pu
Hi all, the exec task always failed while executing a bat which in a different level directory compare to basedir. Here is the sample file system of my build script. The directory "a/b-1" is the basedir of ant build file build.xml. [file-system] a |-- b-1 (basedir) | `-- build.xml `-- b-2

RE: FW : Error while executing exec task

2005-08-18 Thread Dominique Devienne
1 is not a successful error code. Probably means devenv is not in your Path. I always add failonerror="true" to . Then you'll see that it fails. Fix up your Path to have devenv found correctly. --DD > -Original Message- > From: Karunakar Chatla [mailto:[EMAIL PROTECTED] > Sent: Wednesday,

RE: Passing xsl the xml filename as a parameter.

2005-08-18 Thread Dominique Devienne
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ron Piterman > > The xslt task has a parameter sub-element. How can I pass the current > xml file name being processed to the stylesheet? You can't, AFAIK. Use Ant-Contrib's task to call for each individual file. Will be slower since will reco

RE: Removing duplicate jars from classpath

2005-08-18 Thread Dominique Devienne
Probably by using the + selectors in your second . Note that your jlib.gate property will need to be relative to basedir for your scheme to work correctly, but I suspect you already know that. --DD > -Original Message- > From: timt asml [mailto:[EMAIL PROTECTED] > We've recently moved p

RE: Dependencies in reverse?

2005-08-18 Thread Dominique Devienne
> From: [EMAIL PROTECTED] [mailto:eph1v3t8- > > Is there some way to use a mapper to translate one list of files into > another? > > And, how would I generate a list that skips over the directories that > don't exist under src? > > (Should I just give up and write a perl script?) Perhaps, if yo

RE: Sync removing cvs information in target directory

2005-08-18 Thread Mark Benussi
Um Rock and roll... thanks for that. I will have to get my head round the code as I am not too good at the custom tasks stuff -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 15:35 To: 'Ant Users List' Subject: RE: Sync removing cvs information i

RE: Sync removing cvs information in target directory

2005-08-18 Thread Dominique Devienne
Using the code below, you can patch the task to preserve arbitrary files. You'll have to code and compile it yourself though. --DD /** The untouchable files: the ones not to delete. */ private PreservedFiles _untouchables; Between

RE: starteam and ant: problem with stcheckout

2005-08-18 Thread Burgess, Benjamin
The "-vl" means that this is a version label, not a view label. It is handled differently in the checkout task's code. Try replacing the first 4 attributes of the task with this instead: URL="myserver:5558/myproject/myview" just to see if it makes a difference (which it shouldn't). Also, post yo

RE: Sync removing cvs information in target directory

2005-08-18 Thread Mark Benussi
Great idea! -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 12:25 To: Ant Users List Subject: Re: Sync removing cvs information in target directory I move the CVS directories to a temporary holding area, perform the sync, then move them back. You'l

Removing duplicate jars from classpath

2005-08-18 Thread timt asml
Hi, We've recently moved part of our build environment from traditional unix make to ant, and we're encountering some problems (ant 1.6.2, by the way) - We have an hierachical archive organization, in which individual programmers only work on single components of the product. Typically,

Re: AW: AW: Workaround for no failonerror

2005-08-18 Thread James Abley
On Thu, 2005-08-18 at 12:45, [EMAIL PROTECTED] wrote: > I dont know any of these tasks, so here are only 0.5ct :-) > > > >Another good way to do this would be to enhance the tasks! I > >was going to create a patch this weekend if I get the time. I > >think my desired features for this are to al

starteam and ant: problem with stcheckout

2005-08-18 Thread Krist van Besien
Anybody using starteam? I have a problem: When I checkout files using this command: stcmd co -p user:[EMAIL PROTECTED]:5558/myproject/myview/mydir -is -vl "mylabel" -o -eol on -fp checkout/mydir a number of files get checked out. When I use the following command in a build.xml file: No fi

AW: AW: Workaround for no failonerror

2005-08-18 Thread Jan.Materne
I dont know any of these tasks, so here are only 0.5ct :-) >Another good way to do this would be to enhance the tasks! I >was going to create a patch this weekend if I get the time. I >think my desired features for this are to allow a failonerror >attribute and also a usefile attribute to send

Re: Sync removing cvs information in target directory

2005-08-18 Thread Jeffrey E Care
I move the CVS directories to a temporary holding area, perform the sync, then move them back. You'll also need to fiddle with the default excludes to make this work. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Mark Benus

Re: AW: Workaround for no failonerror

2005-08-18 Thread James Abley
I noticed the same irritation with the catalina ant tasks last week. I did try to check whether a webapp was already deployed prior to calling deploy, but I couldn't work out how to capture the output of the Catalina List Task and parse the results for the existence of the webapp. Any suggestions a

AW: Workaround for no failonerror

2005-08-18 Thread Jan.Materne
* Antcontrib * Ant2 will never be written * why you dont check for the existence of the webapp before undeploying? Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 18. August 2005 12:31 >An: user@ant.apache.org >Betreff: Workaroun

Workaround for no failonerror

2005-08-18 Thread cefn.hoile
I keep needing to ignore failures for tasks which don't themselves support a "failonerror" attribute. For example, I want to add a tomcat 'undeploy' task when doing a clean build before redeploying the newly built warfile to tomcat. But this fails if the the app is not already deployed, and st

Sync removing cvs information in target directory

2005-08-18 Thread Mark Benussi
Hi Guys, Any ideas how I could use the sync task but not remove any directories in the target that are named CVS. Basically my CVS information is getting wiped and this is causing problems.

Re: Can one effect the parent build process from subant?

2005-08-18 Thread Steve Loughran
Anderson, Rob (Global Trade) wrote: Properties are immutable. You could probably touch a file in the subant task, and then test whether or not it exists in the calling environment, or something like that. -Rob A There is something in ant-contrib (ant-contrib.sf.net) to pass stuff back up...