Re: Ant paths

2005-05-04 Thread Ben Gill
-Level: >X-Virus-Checked: Checked >Return-Path: [EMAIL PROTECTED] >X-OriginalArrivalTime: 04 May 2005 11:06:43.0534 (UTC) FILETIME=[5AE89EE0:01C55099] > > >On May 3, 2005, at 2:48 PM, Ben Gill wrote: > >>Hi, >> >>The only reason I am even including Spring.j

Scripting engine in ANT core?

2005-05-04 Thread Ben Gill
Hi, Is there a scripting language built into ANT core? or are there any plans to include one? I have a build.xml file that could benefit from using some scripting snippets from time to time, but if I use BSF etc.. or another scripting language - it forces any user to have the extra lib's inclu

Ant paths

2005-05-03 Thread Ben Gill
</copy> ><jar destfile="usespring.jar"> > <fileset dir="classes"/> ></jar> > </target> > > <target name="use" depends="jar"> ><typedef resource="testing/antlib.xml"

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Ben Gill
ot; depends="jar"> > <typedef resource="testing/antlib.xml" >classpath="usespring.jar:lib/spring.jar"/> ><usespring/> > </target> ></project> > > >Outputs: >Searching for build.xml ... >Buildfile: /home/

Re: Custom Ant Task with 3rd party library dependency

2005-05-03 Thread Ben Gill
=[0348B560:01C54FEC] > >Hello Ben, > >Have you tried with to <taskdef> your custom task with >classpath nested tag: ><taskdef classname="org.myorg.MyTask"> > <classpath> > <!-- location to your jars here --> > </classpath> ></ta

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

RE: Appending to ANT classpath

2004-10-18 Thread Ben Gill
.html#delegating-classloader You can predefine task to load bgs.jar and js.jar from your custom location but thus requires copying ant-apache-bsf.jar out of ant distro to your custom location. Sorry, cannot think of something better. --- Ben Gill <[EMAIL PROTECTED]> wrote: > The jar files are b

RE: Appending to ANT classpath

2004-10-18 Thread Ben Gill
can create an alias for ant command: alias ant="ant -lib your_lib_dir" - again no need to write a wrapper --- Ben Gill <[EMAIL PROTECTED]> wrote: > Hi, > > > > I have some optional jar's that I need in the > classpath for my build.xml > file to work. I

Appending to ANT classpath

2004-10-18 Thread Ben Gill
Hi, I have some optional jar's that I need in the classpath for my build.xml file to work. I don't want to copy them to ANT_HOME/lib for them to get picked up, else all developers will need to copy these files to that dir. How can I add these jar files to ANT's classpath without: 1)

RE: Converting first char in a string to lower case

2004-10-15 Thread Ben Gill
Excellent, Thanks Ivan, this works a treat!! I had to use BSF 2.3.0 and the js.jar from Rhino15R3.zip (later versions don't work!) project.setNewProperty(attributes.get("property"), attributes.get("value").toLowerCase());

Converting first char in a string to lower case

2004-10-15 Thread Ben Gill
Hi, I have a string 'Foo' that I want to change to 'foo'. Is there any way of doing this in ant? I have looked at the regex stuff but I don't think that will do the job... Does anyone have any other ideas?

RE: Substring / regex on a package name?

2004-10-13 Thread Ben Gill
Thanks Ivan, that is great... Re: the repackage - move certainly would be a start, but I was looking for a repackage task that would recurse from a point (ie. '.') and move all dirs/java sources/props files etc.. into a new package structure... Ie. From com.oldapp to com.newapp .. But also, I wo

Substring / regex on a package name?

2004-10-13 Thread Ben Gill
Hi, I have two questions: 1) I have a property called "com.myapp" within my build.xml file (or at least loaded in at runtime), and I want to strip off everything past the first dot (to get the base package name com)... Is that possible? 2) Is there a rename packages ANT task? Th