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
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]
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
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
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
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
> 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
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
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
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
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 <
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
--- 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]
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
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
28 matches
Mail list logo