Re: AW: Convert a path

2005-05-03 Thread Nicolas Vervelle
Hi, I finallay manage to do it (and my initial question also) with a bunch of , . If someone is interested, the resulting build file is available at : http://cvs.sourceforge.net/viewcvs.py/jmol/Jmol-web/build-deploy.xml?rev=1.7&view=markup This way I can put the property file used by under cvs a

AW: Ant paths

2005-05-03 Thread Jan . Materne
You should have a look at the manual. "Developing with Ant > Tasks using Properties, Filesets & Paths" [1] shows how to deal with s and s. Jan [1] http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html > -Ursprüngliche Nachricht- > Von: Ben Gill [mailto:[EMAIL PROTECTED]

AW: Convert a path

2005-05-03 Thread Jan . Materne
uses the File.getAbsolutePath() method. That should have the platform dependend separators and roots (/, A: B: ...). So you could try a . Jan > -UrsprÃngliche Nachricht- > Von: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 3. Mai 2005 19:49 > An: Ant Users List

AW: Available Task

2005-05-03 Thread Jan . Materne
Use to find catch that class file. Transform into a property using or . After that should be your friend. Jan > -Ursprüngliche Nachricht- > Von: Stuart Harper [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 3. Mai 2005 19:39 > An: user@ant.apache.org > Betreff: Available Task > > H

task seems broken

2005-05-03 Thread Jason Novotny
I've been trying to see if a particular jar contains a class file, nothing too complex like so: It simply would not work and then after adding -d to ant, I see why: > Finding class org.apache.catalina.valves.FastCommonAccessLogValve Loaded from /Users/novotny/Jakarta/jakarta-tomcat-5.5

Re: defaultexcludes not understood on solaris

2005-05-03 Thread Alexey N. Solofnenko
According to the documentation, the task was introduced in ANT 1.6. - Alexey. Nishi Prafull wrote: Hi: I am running Apache Ant version 1.5.1 and java 1.4.2_06 on sun sparc/solaris 5.6 My build.xml has the line which works fine on windows xp but does not compile on solaris with the following failu

RE: defaultexcludes not understood on solaris

2005-05-03 Thread Dominique Devienne
> From: Nishi Prafull [mailto:[EMAIL PROTECTED] > > I am running Apache Ant version 1.5.1 and java 1.4.2_06 on sun > sparc/solaris 5.6 > My build.xml has the line > > > > which works fine on windows xp but does not compile on solaris with > the following failure > > BUILD FAILED > file:bu

defaultexcludes not understood on solaris

2005-05-03 Thread Nishi Prafull
Hi: I am running Apache Ant version 1.5.1 and java 1.4.2_06 on sun sparc/solaris 5.6 My build.xml has the line which works fine on windows xp but does not compile on solaris with the following failure BUILD FAILED file:build.xml:3: Unexpected element "defaultexcludes" Total time: 2 secon

Ant paths

2005-05-03 Thread Ben Gill
Hi, The only reason I am even including Spring.jar - is because Spring API supports loading of files using the ant style **/*.xml paths... (which is really useful especially for my custom task..) But in theory, I should not need to include spring.jar for this support - as the logic to map thes

Re: Looking for task to add text to file.

2005-05-03 Thread EJ Ciramella
Would it make more sense to break up the file into other smaller ones if regexp doesn't work? Then you could use loadfile for the header content, have a property to store the items you want to add and another loadfile for the rest of the document. Then you could echo the three properties into

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Ben Gill
Peter, You are a star - thanks very much for this... I followed your instructions and got it working! This will go into release 1.1... Thanks! https://rename-packages.dev.java.net/ Ben >From: Peter Reilly <[EMAIL PROTECTED]> >Reply-To: "Ant Users List" >To: Ant Users List <

RE: extracting project revision number

2005-05-03 Thread Kenneth McKnight
Hi Brian, I'm definitely interested. We've just switched from cvs and svn. I'm in the process of replacing our home-grown build system with Ant and would love to latch into the svn revision, etc. For starters can you share with us what your custom task syntax looks like and a little more detail of

RE: Mappers and Closure can't be nullable

2005-05-03 Thread Dominique Devienne
> From: Casey Daniell [mailto:[EMAIL PROTECTED] > > > > > > > > from="^(\w+(\-*\w*)*)(\-+([0-9]?.?)*)*(.jar)$$" > to="\1\5"/> > Your regexp looks a bit too complex. Assuming the version number is always after the - and before the .ja

Re: Convert a path

2005-05-03 Thread Alexey N. Solofnenko
I would use with your preferred scripting language. There are several scripting languages written in Java (Jython, Groovy, BeanShell,...) and they are as portable as Java itself. - Alexey. Nicolas Vervelle wrote: I didn't have much success with my last question :( I will try with only a small p

Available Task

2005-05-03 Thread Stuart Harper
Hi, I'm trying to use Ant to create a script which behaves differently depending on the presence of a certain class. I could use the Available task if I knew the full classname but I only know that it will start with Debug. Is there any way to make the available task operate with filesets/patt

Convert a path

2005-05-03 Thread Nicolas Vervelle
I didn't have much success with my last question :( I will try with only a small problem then : How to expand a path (${build.dir}) to match what I get with and the reverse modification? For example : E:\Java\Jmol-web -> E\:\\Java\\Jmol-web -> E:\Java\Jmol- web It must be portable (Windows, Lin

Mappers and Closure can't be nullable

2005-05-03 Thread Casey Daniell
What am I overlooking here, I remember getting this working before, but its been a while. Can anyone think of something I am overlooking here? I am basically trying to strip out the version string from the jar file's name. I then get the following error when r

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Peter Reilly
In your resource you should not set the classpath. Doing so will override the classpath given in the build file and cause ant to be confused. So just use: For example: src/testing/UseSpring.java: package testing; import org.springframework.beans.PropertyValue; import org.apache.tools.ant.Tas

Re: Ant 1.6.3, JDK1.5 and extJavac="1.3"

2005-05-03 Thread Wim Praet
Try . When I try to do that ( being: executable="${jdk13}" is missing. You need to tell Ant (1) that you want to run an external JDK compiler (fork="true"), (2) that you don't want the one of the current JDK, but a different executable (executable="...") and (3) that the compile accepts a comma

Re: Xslt task and DOCTYPE

2005-05-03 Thread Robert Koberg
CLAVIER Remi RD-CORE-LAN wrote: How to force an XSLT transformation To ignore a DTD declared inside the input XML file ? It would be the XML parser that would need to ignore it. You most likely want to use a catalog resolver to set up a local version of the dtd. http://ant.apache.org/manual/Co

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Ben Gill
Hi , Yes I have tried that (well a variety of this type of thing) and it is not working for me... In my 'main' build.xml file I do this: Then, in my appfuse-contrib.xml file I do: But whatever I try setting either classpath to (or even if I use inline classpath, or classpathref), my custo

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Stefan Bodewig
On Tue, 03 May 2005, Ben Gill <[EMAIL PROTECTED]> wrote: > Has anyone got a nice, tidy way of making 3rd party jar files > available to a custom task? It should work if your third party task and spring come from the same place. The easiest way of course is to bundle them in the same jar. But th

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Ivan Ivanov
Hello Ben, Have you tried with to your custom task with classpath nested tag: HTH Ivan --- Ben Gill <[EMAIL PROTECTED]> wrote: > Hi, > > My custom Ant task relies on the Spring jar files, > but whatever I try, I get > a class not found exception.. > > I read a lot of posts on this

Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Ben Gill
Hi, My custom Ant task relies on the Spring jar files, but whatever I try, I get a class not found exception.. I read a lot of posts on this and saw Eric's article here: http://www.fawcette.com/javapro/2003_02/magazine/features/ehatcher/ But I cannot believe I have to spawn off a JVM to pick up t

AW: [Fwd: Re: problems building ant-testutil.jar]

2005-05-03 Thread Jan . Materne
I started the tutorial in BugZilla [1]. There is a ZIP file [2] containing the sources AND a version of ant-testutil.jar which I used while writing the script. But that´s only a workaround ... ant-testutil.jar is created via "build test-jar" which is not part of the official binary distribution. I

[Fwd: Re: problems building ant-testutil.jar]

2005-05-03 Thread Peter Reilly
--- Begin Message --- Hello Peter, When I was trying to follow the online tutorials, I found that, in "Developing with Ant"->"Writing Tasks"->"Test the Task", the base class "BuildFileTest" is not provided, also, the link given by http://gump.covalent.net/jars/latest/ant/ant-testutil.jar [5]

Re: extracting project revision number

2005-05-03 Thread Brian Lalor
On Apr 29, 2005, at 10:19 AM, Andre Charbonneau wrote: I would like to extract the Subversion build number of my project and use this to name my release files (tar.gz). What I thought of doing is to put a Subversion tag in my build.properties file. Something like the following: I've written

Re: Ant 1.6.3, JDK1.5 and extJavac="1.3"

2005-05-03 Thread Stefan Bodewig
On Mon, 2 May 2005, Wim Praet <[EMAIL PROTECTED]> wrote: >> On Mon, 2 May 2005, Wim Praet <[EMAIL PROTECTED]> wrote: >> >>> >> compiler="extJavac" executable="${jdk13}" source="1.3" >>> target="1.3"> >> >> Try . > > When I try to do that ( being: > compiler="javac1.3" fork="true" source="1.3" tar