Re: Running exec tast

2008-11-23 Thread James Abley
2008/11/20 Rez <[EMAIL PROTECTED]>: > > Hi > > > I can run the below command from a Windows cmd line just fine > cvs -f stat | grep "Repository revision" | gawk '{print $4 " " $3}' > but now I'd like to add it to my build.xml file in a target > > line="cvs -f stat | grep "Repository revis

Re: external tasks configuration question

2008-11-15 Thread James Abley
Eclipse uses a different mechanism and needs to be explicitly configured? Cheers, James On 15 Nov 2008, 6:41 AM, "Patrick Waugh" <[EMAIL PROTECTED]> wrote: In the ANT manual: http://ant.apache.org/manual/install.html#optionalTasks It says: The external libraries required by each of the opti

Re: Ant NOT finding jars even in ant/lib (without classpath=)

2008-11-15 Thread James Abley
Does it work on the command line? It may just be an Eclipse configuration thing. Cheers, James On 15 Nov 2008, 7:49 AM, "Patrick Waugh" <[EMAIL PROTECTED]> wrote: Somehow I have screwed up my configuration as I can no longer have automatically find installed external tasks in either: ~/.an

Re: Ant 1.7 - XSLT task and Xalan and Saxon9 issue

2008-10-02 Thread James Abley
2008/9/30 Marijan (Mario) Madunic <[EMAIL PROTECTED]>: > I'm trying to run various XSLT tasks that either rely on Xalan or Saxon and > am having a hard time with ANT recognizing Xalan when Saxon is in the > Ant/lib. The reason I am running both is that Xalan has a better extension > for SQL than Sa

Re: Ant 1.7.1 install on Ubuntu problem

2008-09-29 Thread James Abley
2008/9/29 Patrick Waugh <[EMAIL PROTECTED]>: > James, > > I downloaded it twice, and the "lib" directory was empty in both > copies. The other version was just fine. I'm using Ubuntu Hardy, and > have no problem with other zip's. > > Patrick Hi Patrick, Just so that I'm clear in my own head, yo

Re: Ant 1.7.1 install on Ubuntu problem

2008-09-29 Thread James Abley
2008/9/27 Patrick Waugh <[EMAIL PROTECTED]>: > Found the problem. The .tar.gz archieve is missing the lib files. I > downloaded the .bz2, and all was fine. > > Patrick The tar.gz works for me and doesn't appear to have changed since it was released; i.e. Last-Modified of early July 2008 for the

Re: Error when using 'ant install' command

2008-04-06 Thread James Abley
On 05/04/2008, Paolo Futre <[EMAIL PROTECTED]> wrote: > > I'm new to using Ant and am having a problem when using the 'ant install' > command. I've devloped a servlet and am attempting to deploy it onto Apache > Tomcat. I've compiled it successfully using the 'ant' command but when I > try an

Re: NetBeans target "run" to .bat file

2008-04-01 Thread James Abley
> > > Andrew n marshall wrote .. > > > > > >> This may be more of a general Java question than a specific Ant > > >> question, but here it goes > > >> > > >> I have a project that I built with NetBeans. NetBeans gave me a nice > > >> ant file that works great. But I need non-developers

Re: OSGi and Ant

2008-03-26 Thread James Abley
On 21/03/2008, Luca Ferrari <[EMAIL PROTECTED]> wrote: > Hi, > does anybody knows if there's any kind of extension of Ant to simplify the > definition of an OSGi bundle? > Just curios > > Thanks, > Luca Not aware of any - I've used a previously IIRC, but that was at a former employer and

Re: [Ant Java Source] How to get some build.xml params?

2008-02-09 Thread James Abley
On 08/02/2008, rigel <[EMAIL PROTECTED]> wrote: > > Hello Everyone, > > I am currently working on some JUnit task sources, precisely on > "XMLJUnitResultFormatter" and "JUnitVersionHelper" of the library named > "ant-junit.jar". > > I have patched XMLJUnitResultFormatter to support additional test

Re: AW: AW: For each jar in a fileset

2008-01-29 Thread James Abley
On 25/01/2008, Clifton <[EMAIL PROTECTED]> wrote: > > Thanx Jan. That works too but only on Ant-1.7+. I'm running the build > indirectly from a Maven pom via the ant-run plugin. Apparently Maven-ant-run > is only 1.6.5 compatible so I need more magic. I'm going to move my question > to the Maven ma

Re: Looking for help with context classloader

2008-01-25 Thread James Abley
On 23/01/2008, Toomey, Kevin H (ATS, IT) <[EMAIL PROTECTED]> wrote: > I'm writing a web application for among things, managing the building and > deploying of applications, and I'm using Ant (1.7.0) as the engine for those > pieces. The basic flow is: > > Project p = new Project(); > p.init(); >

Re: where to get the jar file for ANT ForTask

2008-01-19 Thread James Abley
On 16/01/2008, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > Google ant-contrib. > > -Rob Anderson Or even http://www.google.co.uk/search?q=ant+for+task Third hit for me looks pretty good. > > -Original Message- > From: Nagender Kumar Mallik [mailto:[EMAIL PROTECTED] > Sent:

Re: Redirecting compile errors

2008-01-16 Thread James Abley
On 16/01/2008, Steve Loughran <[EMAIL PROTECTED]> wrote: > Toomey, Kevin H (ATS, IT) wrote: > > It looks like support for JSR199 (java compiler API) would give me what I'm > > looking for, but I couldn't tell for sure if/when that support would be > > available with Ant. > > > The open source sto

Re: Redirecting compile errors

2008-01-15 Thread James Abley
On 10/01/2008, Toomey, Kevin H (ATS, IT) <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using a Java class to execute an Ant project, and am unable to direct > compile errors to the log file used by my BuildLogger. > > Here's an abbreviated version of my code: > > Project p = new Project(); > p.init();

Re: ANT Question: How do I check for the presence of JAR files in a directory

2007-12-09 Thread James Abley
> Eric Wood wrote: > > Thanks, that works. > > > > Is there something further I can read on resources and how to use them. > > I read the manual page and was a little confussed. Is anybody aware of > > some good documentation on this topic with some examples. Eric, can you share what you felt was

Re: Using XSLT2

2007-03-19 Thread James Abley
Looks like an issue with Saxon. http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/TransformerFactory.html#newInstance() "Obtain a new instance of a TransformerFactory. This static method creates a new factory instance This method uses the following ordered lookup procedure to determi

Re: Error starting modern compiler

2007-03-15 Thread James Abley
You say it worked previously. The obvious question would be what has changed? Jacky wrote: Hi guys, Any luck for me? Anything that i can provide to help you guys to help me? Hope that i can solve this fast. Thanks. Warm regards, Jacky Wong Jacky wrote: Hi guys, I encounter this error wh

Re: How to compile jsp files with ANT

2007-02-22 Thread James Abley
The OP talked about an intended target environment of Websphere, but the discussion was indicating using (the Tomcat JSP compiler) Jasper. That is how it wouldn't be portable. Jing Xue wrote: I don't see how the portability issue become a serious one. Really, what are the chances that we would

Re: AW: AW: How to compile jsp files with ANT

2007-02-21 Thread James Abley
Steve Loughran wrote: [EMAIL PROTECTED] wrote: 5. You get to verify the output matches what you want. Except Httpunit feeds its stuff through tidy; its very HTML-centric. Does anyone know how to use it to test proper XML documents, with namespaces and the like? XmlUnit ? http://xmlunit.sf.n

Re: How to compile jsp files with ANT

2007-02-21 Thread James Abley
suitable for a dev build but only for production build. -Regards Rashmi - Original Message ---- From: James Abley <[EMAIL PROTECTED]> To: Ant Users List Sent: Wednesday, February 21, 2007 3:12:40 AM Subject: Re: How to compile jsp files with ANT Why do you want to do this; e.g. is it pa

Re: How to compile jsp files with ANT

2007-02-21 Thread James Abley
Why do you want to do this; e.g. is it part of a check to make sure that all JSP pages will compile? Typically, you'd get better results by using httpunit or a spider of sort sort to access every page and check that it doesn't come back with a 500 response. That way, you are using the deploymen

Re: Issues with ANT 1.7 and Linux???

2007-02-16 Thread James Abley
Sorry, I thought Antoine had answered this, but just to be explicit: Paths are (always in my experience with the filesystems I've used) case-sensitive under Linux. Have you tried: ls -l /home/scm/CC_BUILD/projects/RSA/build.properties and ls -l /home/scm/CC_Build/projects/RSA/build.properti

Re: Does this work with Ant?

2007-02-15 Thread James Abley
Steve Loughran wrote: Mark Modrall wrote: Just did something similar to this using antcall and recursion. One routine to check/wait for a windows service to reach a desired state and another to check/wait for files in a directory to reach a certain state. The routines being called invoke the

Re: ant run command piping and get out put to value

2007-02-12 Thread James Abley
Probably something like: Mr raju varghese wrote: So how can i do it. tried the following way but it does not recognize the pipe sybmol. error is like Unexpected text ""|"" | --- Ninju Bohra <[EMAIL PROTECTED]> wrote: Hello, The task allows you execute any abritary

Re: Python implementation for Ant

2007-02-08 Thread James Abley
I only have limited scripting language experience (Python, Perl, Ruby and Groovy) but normally a variable not being set would show up at runtime, rather than compile time? Discuss. ;-) Hans Schwaebli wrote: A side effect of the make files is its platform dependence. And there had been other

Re: Delete files if error log exist

2007-02-07 Thread James Abley
So work with ANT, not against it. ... Something like that? Ninju Bohra wrote: Ooops...it appears you might have a problem (or two)... First off... I do not believe you can nest abritary task nodes within a task...the only sub-element permitted is

Re: help! taskdef class.org.apache.catalina.ant.DeployTask cannot be found

2007-02-05 Thread James Abley
Probably Sun Java Studio has an embedded instance of ANT, and you've put the jars into the wrong place. Try just defining them according to where the jars are located: location="${catalina.home}/server/lib/catalina-ant.jar" /> Tea

Re: ant env

2007-01-16 Thread James Abley
Sample build file and output would have been good. Then -v and -d output, etc. Cheers, James Kalsi, Ramnish wrote: *any* property. ant version - 1.6.5 OS - Linux (CentOS) the same thing runs on ubuntu. -Original Message- From: RADEMAKERS Tanguy [mailto:[EMAIL P

Re: Hidden property values with debug verbosity?

2007-01-10 Thread James Abley
Why can't you filter ANT's output before it goes to the log? ant -f some-build-file.xml | grep -v ' some patterns here' > ant-output.log Cheers, James [EMAIL PROTECTED] wrote: Does anyone have a method to suppress echo of selected property value when debugging is enabled? I am thinking of ma

Re: ANT task to process properties-files into static class

2007-01-02 Thread James Abley
If that's the sort of thing you're after, Log4J has a similar mechanism which can monitor the config file and polls to see if it needs to reload the configuration. [1] I think that would provide a template for you. YMMV. Cheers, James [1] http://logging.apache.org/log4j/docs/api/org/apache/

Re: AW: AW: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread James Abley
OK, going with the empirical approach rather than theorising about it! public class X { org.apache.xerces.parsers.XIncludeAwareParserConfiguration conf = new org.apache.xerces.parsers.XIncludeAwareParserConfiguration(); } That works for me, although I notic

Re: AW: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread James Abley
Looks like it does... http://svn.apache.org/viewvc/xerces/java/trunk/build.xml?view=markup which uses an extended form of http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java?view=markup The class file version number (after pulling apart org.apache.xerces.impl.Version) is 45.

Re: where is wsdl2Java?

2006-11-29 Thread James Abley
OK, that looks like the CLI version, rather than the ANT task. Any other candidates in the Axis2 distro? Martin Gainty wrote: Hi Scott- I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib and ran the samples.xbeans build.xml compile task first I editted the build.xm

Re: where is wsdl2Java?

2006-11-29 Thread James Abley
Part of Apache Axis, so I would expect axis-ant.jar or something similar, in Axis 1 anyway. Martin Gainty wrote: All- I am attempting to locate the jar which contains the taskdef'ed wsdl2java task? Thank You, Martin -- This e-mail communication and any attachments may contain confidential and p

Re: Ant Task to Write to a file

2006-11-09 Thread James Abley
${some.property} http://ant.apache.org/manual/CoreTasks/echo.html me_zeta wrote: The value i want to write to a file is an xml string of the form {data comes here} how can this be done?? Tom Corcoran-2 wrote: Here's an example which creates the file datetime.inc in your

Re: Classpath failure has me mystified.

2006-10-19 Thread James Abley
What's in your CLASSPATH environment variable? James [EMAIL PROTECTED] wrote: Thanks. I tried them both but didn't see anything I didn't expect to see. I am still no closer to an answer. = Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_06\

Re: Classpath failure has me mystified.

2006-10-19 Thread James Abley
ant -v ant -d What equivalent command-line is ANT generating? James [EMAIL PROTECTED] wrote: My problem: When running a build file, I get this error message: [java] Error in FetchDataAsXML.getXML(): java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The relevant section

Re: AW: a problem compiling a Java 5 project with generics

2006-10-18 Thread James Abley
Chavdar Botev wrote: Peter Reilly wrote: The original code may be slightly incorrect (my understanding of java generics is not high). Ha-ha. I think the original code cannot be slightly incorrect. It is either correct or incorrect. ;) It certainly possible that my understanding of Java generics

Re: AW: a problem compiling a Java 5 project with generics

2006-10-18 Thread James Abley
27;t seem to add a great deal. Maybe a bit less busywork in my code; ditto unboxing. James Abley wrote: Peter Reilly wrote: The original code may be slightly incorrect (my understanding of java generics is not high). Me too. I don't l

Re: AW: a problem compiling a Java 5 project with generics

2006-10-18 Thread James Abley
Peter Reilly wrote: The original code may be slightly incorrect (my understanding of java generics is not high). Me too. I don't like STL! James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread James Abley
Fails for me: Ubuntu Dapper, Ant 1.6.5, Sun JDK 1.5.0_07 bash:$ ant -v bash:$ touch test/Test3.java bash:$ ant -v [javac] /work/ant-test/ant-generics/test/Test3.java [javac] /work/ant-test/ant-generics/test/Test3.java:8: incompatible types [javac] found : test.Base

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread James Abley
Steve Loughran wrote: Hans Schwaebli wrote: At least you should have released quickly a Ant version with built in support for JUnit 4. Alternatively, "Junit4 should have been backwards compatilbe with the previous version. See point (1) +1 To add another thing to consider, perhaps the

Re: Check to See If Directory Exists

2006-10-11 Thread James Abley
Maybe not documented, but it's not too hard to discover empirically. bash:/work/ant-test/mkdir$ ant Buildfile: build.xml test: [mkdir] Created dir: /work/ant-test/mkdir/test BUILD SUCCESSFUL Total time: 0 seconds bash:/work/ant-test/mkdir$ ant Buildfile: build.xml test: BUIL

Re: xmlvalidate with remote schemas

2006-09-25 Thread James Abley
Try turning on grammar caching. http://xml.apache.org/xerces2-j/faq-grammars.html#faq-4 I would imagine by doing something like this: value="org.apache.xerces.parsers.XMLGrammarCachingConfiguration" /> or: value="org.apache.xerces.parsers.XMLGrammarCachingConfiguration" /> Cheers, James

Re: Ant, C++ and Unit tests

2006-08-18 Thread James Abley
CppUnit or CppUnitLite are the two that I'm most immediately aware of, but Googling C++ and xUnit would doubtless turn up more. I haven't used them with ANT though; don't know if you could just the unit test framework, or do something more sophisticated than that. I suspect Dominique may have

Re: get filename

2006-08-17 Thread James Abley
I definitely think is the way to go. ant.file: '${ant.file}' filename: '${filename}' HTH, James Benjamin H. wrote: I has try this: Filename === ${filename}

Re: How to silence javac task?

2006-08-15 Thread James Abley
I run 1.6.5 and haven't looked in SVN to see if it's on the roadmap, but would enhancing to support I/O redirectors [1] be of any use here? Cheers, James [1] http://ant.apache.org/manual/CoreTypes/redirector.html Dominique Devienne wrote: So 2. and 3. are _always_ logged irrespective of use

Re: doesn't work for ASCII art

2006-08-09 Thread James Abley
[echo]spread all [echo] overthe place [echo], wouldn't you say? BUILD SUCCESSFUL Total time: 0 seconds Hans Schwaebli wrote: Doesn't work to solve the problem. James Abley <[EMAIL PROTECTED]> wrote: CDATA? Hans Schwaebli wrote: Doesn't work.

Re: doesn't work for ASCII art

2006-08-09 Thread James Abley
CDATA? Hans Schwaebli wrote: Doesn't work. Same effect. Lets say you have three spaces in a row. They are all trimmed. "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: Yup there is a task = first load the file as a property : ... and later echo the property ${bla} btw af

Re: classpath problem using the java task

2006-07-05 Thread James Abley
ant -v or ant -d for more verbose output as to what ANT is doing. Jeffrey E Care wrote: Check out your property definition for appserver-home. Jeffrey E. (Jeff) Care [EMAIL PROTECTED]

Re: Add html tags in a text file

2006-05-11 Thread James Abley
ANT build files are XML, thus, you need to ensure that it's well-formed, or (more probably in this case) escape any tags, use CDATA, or similar: etc, File rename - use a glob mapper http://ant.apache.org/manual/CoreTypes/mapper.html Cheers, James Mikael Petterson (KI/EAB) wro

Re: Memory Leak on Solaris?

2006-05-10 Thread James Abley
Hi Ritesh, Have you profiled your application? Cheers, James Scot P. Floess wrote: Ritesh: In just examining your code fragment, it wouldn't appear you are doing anything out of the ordinary (to cause a memory leak). At a high level, what does this app do specifically? Perhaps the failur

Re: AW: Have an Ant script run even with missing JARs?

2006-02-28 Thread James Abley
Jan and I are both producing the same answer. Here's the overlap: Or near enough to get you going. James On Tue, 2006-02-28 at 14:24, Glen Mazza wrote: > [EMAIL PROTECTED] wrote: > > > If you´re doing the in a init-target and let the deploy-target > > d

Re: Have an Ant script run even with missing JARs?

2006-02-28 Thread James Abley
What scope are you doing the taskdefs for the Tomcat ANT tasks? On Tue, 2006-02-28 at 13:55, Glen Mazza wrote: > Hello, > > I have an Ant build script for dynamic deployment of a web application > to Tomcat. This requires a special Tomcat JARs to be added to the Ant > lib directory to run. No

Re: how to exec with a set of files as multiple arguments?

2006-02-17 Thread James Abley
pathconvert? http://ant.apache.org/manual/CoreTasks/pathconvert.html On Fri, 2006-02-17 at 13:13, Paul Pogonyshev wrote: > Hi, > > I need to execute a command with a large, not known in advance, > number of files, each listed as separate argument. I have been > unable to figure out how to do th

RE: source attribute

2005-12-20 Thread James Abley
nowarn attribute? On Tue, 2005-12-20 at 16:31, Burgess, Benjamin wrote: > This is as a result of using a 1.5 JVM to compile. Only switching to a > 1.4 JVM will prevent this warning from occurring. > > Ben > > -Original Message- > From: Lim, Teck Hooi [mailto:[EMAIL PROTECTED] > Sent: T

Re: CVS Task

2005-12-05 Thread James Abley
Is cvs on your PATH? On Mon, 2005-12-05 at 12:29, Guruprasad R wrote: > Hi all, > > I have written a build file that does a checkout from the CVS. But, when i > invoke ant command for the written build file, i get an error message as > > *[cvs] Using cvs passfile: C:\Documents and Settings\admi

Re: Logging depending on return result from Java prog

2005-10-28 Thread James Abley
On Fri, 2005-10-28 at 12:49, Ben Ryan wrote: > Hi, > Apologies in advance if this is a trivial question. > > I have looked everywhere I can find, there are probably lots of > other places, for an example of how to log an error message only when > the prog run by a java task returns non-ze

RE:

2005-10-20 Thread James Abley
On Thu, 2005-10-20 at 14:48, Mikael Petterson (KI/EAB) wrote: > Hi, > > I am not quite confident how you mean? Can you please show me? And what is > the meaning of > > " > Ant build files are in XML. " is the XML character reference for the double-quote character. See http://skew.org/xml/tu

RE: Help with choosing build property file

2005-10-07 Thread James Abley
Google is your friend. http://www.google.co.uk/search?hl=en&q=ant+computername+hostname First link: http://www.ehatchersolutions.com/JavaDevWithAnt/ant.html I would expect something like this to work on Windows and Solaris, but I use Linux rather than Solaris. James On Fri, 2005-10-07 at 16:2

Re: GET ANT task parameters...

2005-09-09 Thread James Abley
On Fri, 2005-09-09 at 16:04, [EMAIL PROTECTED] wrote: > Hello all, > > I'm trying to download a website using the GET ant task but I'm facing > some problems... > > 1. Can't use URL variables and values as parameters... > Using Eclipse facility, I can't write down the full address with > variable

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

2005-09-08 Thread James Abley
vision.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&qu

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

2005-09-06 Thread James Abley
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

Re: Ant "Build Failed" for uninstall target

2005-09-01 Thread James Abley
I think your url attribute on the undeploy element is wrong - you're referencing the html version, rather than the other version. [1] Try url="http://localhost:8080/manager"; [1] http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/ant/package-summary.html James

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

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

Utility macrodef to verify all filterset tokens are replaced

2005-08-05 Thread James Abley
Inspired by a comment from Jan earlier this week on the list, here is one of my commonly used macrodefs. We find it very useful to use prior to building a war or similar artifact for deployment. With the number of environments that we have, it is a great time saver to detect that you don't have a

Re: XSLT - Many Input One Output

2005-07-29 Thread James Abley
Or an ANT solution doing the same via On Fri, 2005-07-29 at 16:09, Douglas Lochart wrote: > A non ANT solution to your problem may be to dynamically create a single > XML file that simply includes the other xml files. > Then you pass the single xml file to the processor. This requires using >

RE: How to open URL from ANT.

2005-06-06 Thread James Abley
If you're doing it to reload the context of an application in Tomcat, is there any reason why you can't use the Tomcat ant tasks? These support the basic authentication that I assume you have in place. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/index.html James -Ori

Re: Using ant properties in file

2005-04-20 Thread James Abley
On Wed, 2005-04-20 at 03:40, Ninju Bohra wrote: > So anybody have any guidance on whether or not > ${property.name} are resolved in filter > file? > > > --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > Just want to make sure that ANT 1.6.2 can NOT do the > > following (otherwis

RE: Quotations in a property get corrupted when passed as an arg

2005-04-13 Thread James Abley
On Tue, 2005-04-12 at 12:36, Oski Wee wrote: > >temp.cmd argument^ that^ has^ a^ literal^ ^"^ as^ part^ of^ its^ value > > > >The above is properly treated as 1 argument. > > Actually, turns out that the ^ does not even work from the command prompt. > > I guess I can try doing this: > temp.cmd "a

Re: NoClassDefFoundError for class that is on the classpath?

2005-03-31 Thread James Abley
On Thu, 2005-03-31 at 15:25, Fermin Da Costa wrote: > On Thu, 31 Mar 2005 09:04:17 -0500, Doklovic, Jonathan > <[EMAIL PROTECTED]> wrote: > > What does your entry look like? > I'm assuming y'r referring to the code that actually calls the class. > ... > >failonerror="true" maxmemo

Re: Where Tomcat tasks documented

2005-03-29 Thread James Abley
On Tue, 2005-03-29 at 09:40, David wrote: > Dear Members, > > I am looking where are the install, reload, remove and list tasks documented, > I don't see them on the Apache Ant User Manual (Core and Optional Tasks). > Tomcat javadoc http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/d

RE: set jvm to 1.3

2005-03-18 Thread James Abley
gt; http://ant.apache.org/manual/CoreTasks/javac.html and http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html again See the nowarn option, if you really think that you need to disable the warning output. > //Mikael > > > > -Original Message- > From: James

RE: set jvm to 1.3

2005-03-17 Thread James Abley
On Fri, 2005-03-18 at 07:20, Mikael Petterson (KI/EAB) wrote: > Hi, > > I have set javac's source attribute to 1.3 but when I compile the code I > get, > > ".. warning: as of release 1.4, assert is a keyword..." > > I start ant with 1.4.2 so I guess that is the default for compiling code to.

RE: set jvm to 1.3

2005-03-17 Thread James Abley
On Thu, 2005-03-17 at 14:00, Mikael Petterson (KI/EAB) wrote: > Hi again, > > So what is the difference of > > javac attributes "target" and "compiler". > If I want to make sure that my code is compilable for 1.3? > I am getting somewhat confused. > > //Mikael compare with `javac -help` for the

Re: SVNAnt

2005-03-16 Thread James Abley
On Wed, 2005-03-16 at 10:22, Andrea Quintavalle wrote: > Try here > > http://subclipse.tigris.org/svnant.html > - Original Message - > From: Naveen Mamidi > To: Ant Users List > Sent: Wednesday, March 16, 2005 10:50 AM > Subject: SVNAnt > > > Hi, > > where can I downloa

RE: Building Java code with a different version

2005-03-09 Thread James Abley
On Wed, 2005-03-09 at 04:43, Perkins, Kristian wrote: > I think the point to make is that the same JDK will be used regardless > of the values of build.compiler or compiler attribute, but the > difference will be in the compiled classes that are outputted, that is > setting compiler to javac1.4 wil

Re: Relative classpaths for a manifest

2005-03-07 Thread James Abley
On Sun, 2005-03-06 at 22:37, Abbey Sparrow wrote: > I have been looking at pathconvert, on jeffery and martin's suggestion > (and am a little amazed I didn't see it earlier), however... it seems I > either have to standardize on the platform ant is running on or create > some logic to convert th

RE: regular expression

2005-03-07 Thread James Abley
On Fri, 2005-03-04 at 18:20, Radha Sangal wrote: > Here it is , I tested this code with the values in comments at end of > statements and it was working but I think it doesn't work well with my > actual string... > > CharSequence inputStr = "codebase='formbuilderocx.cab#version=4,2,0,0' > viewaste

Re: javac task

2005-02-22 Thread James Abley
On Tue, 2005-02-22 at 11:30, Shigemoto FUJIKURA wrote: > hi all, > > im stacking on an error which produced by javac task. > when i use javac task like this: > > > > > > > > > > the following error occurs. > > compile: > [javac] Compiling 241 source files to

Re: AW: AW: problem with javadoc

2005-02-11 Thread James Abley
On Fri, 2005-02-11 at 12:58, [EMAIL PROTECTED] wrote: > AFAIK Eclipse starts with the Java where JAVA_HOME points to, > if you dont provide another one via -vm option. > > Jan > If you look in Window | Preferences, under the Java option there should be an "Installed JREs" entry. You can check wh

Re: Copy taks, include files exclude subfolders

2005-02-01 Thread James Abley
On Tue, 2005-02-01 at 10:16, James Abley wrote: > On Tue, 2005-02-01 at 10:10, Matt Benic wrote: > > Hi there, > > I am having trouble implementing a copy task. Given the following folder > > layout: > > /sourcefolder > > file1 > > file2.da

Re: Copy taks, include files exclude subfolders

2005-02-01 Thread James Abley
On Tue, 2005-02-01 at 10:10, Matt Benic wrote: > Hi there, > I am having trouble implementing a copy task. Given the following folder > layout: > /sourcefolder > file1 > file2.dat > /subfolder1 > file3 > /subfolder2 > file4 > > I want to be able to copy all files in

Re: CVS command with Ant in IntelliJ

2005-01-28 Thread James Abley
On Fri, 2005-01-28 at 10:17, Lieve Van den Heuvel wrote: > Hi, > > I'm just new to the mailing list but I'm experiencing a very > "frustrating" problem. I've written a buildscript for our project but > I'm not able to execute a cvs-command in the buildfile. > > The environment I'm working in: >

RE: Packages + Ant

2005-01-25 Thread James Abley
On Tue, 2005-01-25 at 19:53, Dominique Devienne wrote: > > -Original Message- > > From: Longie [mailto:[EMAIL PROTECTED] > > I got that to work but it means now that i cant run the program from a > > standalone jar ie. right click on the name.jar and go to javaw. > > > > So from a dos comm

RE: Any way to get at the machine name?

2005-01-25 Thread James Abley
On Tue, 2005-01-25 at 16:19, Dominique Devienne wrote: > > -Original Message- > > From: news [mailto:[EMAIL PROTECTED] On Behalf Of > > > > I don't see this in the available properties? > > See below. You'll just have to do your own conditional > if you want it to work cross-platform. --D

Re: including libs in my project

2005-01-20 Thread James Abley
On Thu, 2005-01-20 at 11:34, [EMAIL PROTECTED] wrote: > Hi, > > I created a project, and I decided to give ANT a try to create a JAR file. > The structure of my project is like this: > > src > - lib => contains all libraries (jar files) I use, mainly Axis jar's > - be => contains classes t

Re: JUnitreport and xalan upgrade issues

2005-01-07 Thread James Abley
On Fri, 2005-01-07 at 13:42, Klaus Thorup wrote: > Currently I am trying to use ANT 1.6.2 with Xalan 2.6.0 and Xerces > 2.6.2. The $ANT_HOME/lib directory contains all the appropriate jar > files xalan.jar, xml-apis.jar and xercesImpl.jar. > > However when running the junitreport task with the -ve

RE: Ant should have an ext directory

2005-01-05 Thread James Abley
On Wed, 2005-01-05 at 04:50, Erskine, Chris wrote: > I do not think that we are saying to use Maven. I am asking for a way to > support different versions of third party jars from the same instance of > ant. Maven is being used as an example of one way to do it. I do not need > the auto-download

RE: ant UI

2004-12-22 Thread James Abley
ant -DDevBuild1=firstOverride -DDevBuild2=secondOverride On Wed, 2004-12-22 at 15:22, Radha Sangal wrote: > Do u know how to pass multiple properties ? like dev.build2 ... space > /comma does not work > > -Original Message- > From: Jacob, Anil - MWT [mailt

Re: Need help understanding dependencies and destdir

2004-12-15 Thread James Abley
On Wed, 2004-12-15 at 13:02, Joel wrote: > James Abley wrote > > > On Wed, 2004-12-15 at 11:42, Joel wrote: > > > > For that last part, I think that you need to look at . > > > > Have a > > > > > > > > > > > > > >

Re: Need help understanding dependencies and destdir

2004-12-15 Thread James Abley
On Wed, 2004-12-15 at 11:42, Joel wrote: > > For that last part, I think that you need to look at . > > Have a > > > > > > > > is not aware of dependencies and inheritance hierarchies. > > Is supposed to be able to tell when a particular source file > is newer than its class file? > > --

RE: Conditional processing

2004-12-15 Thread James Abley
On Tue, 2004-12-14 at 20:25, Charles Daniels wrote: > You can use ant-contrib tasks: http://ant-contrib.sourceforge.net/ > (click on the "Other tasks" link to see the list of available tasks). > Alternatively, you can use Maven (http://maven.apache.org) instead of > Ant.

Re: Need help understanding dependencies and destdir

2004-12-14 Thread James Abley
For that last part, I think that you need to look at . Have a is not aware of dependencies and inheritance hierarchies. For the problem with destdir, I'm not sure. What output do you get from -verbose / -debug? On Tue, 2004-12-14 at 07:43, Joel wrote: > The following piece of my build.xml

Re: help classpath issue

2004-12-13 Thread James Abley
Can't see anything obvious, apart from the echo task nested in the java task - I don't think that will work. What differences do you see when you use the -verbose or -debug option to dump the arguments to the java task, versus the arguments that you are passing when using the java runtime on the c

Re: Need help understanding dependencies and destdir

2004-12-13 Thread James Abley
04-12-14 at 10:07, Joel wrote: > On Tue, 14 Dec 2004 08:14:15 + > James Abley <[EMAIL PROTECTED]> wrote > > > For that last part, I think that you need to look at . > > Where is that documented? (I see a dependset, but I think that's > different?) > >

JUnit task and TestSuite hierarchy

2004-12-13 Thread James Abley
Hi, This has been previously discussed - see http://marc.theaimsgroup.com/?l=ant-user&m=106200360415717&w=4. I have some nested test suites and the standard XMLJUnitResultFormatter doesn't allow nested test suites, since the document root element is "testsuite". I would like the output to be some