?
Or a combination of and as described in the examples
(I think, the last one).
Jan
> -Ursprüngliche Nachricht-
> Von: Cyril Sagan [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 29. Mai 2008 00:27
> An: Ant Users List
> Betreff: How can I "conditionall chooise" a target impleme
> Hi, I don't know if I am in the right forum. I have the following
problem. I
> have create a Web Service which transforms a file from html to xml.
When I
> call that WS I get the following error:
>
> java.lang.NullPointerException at java.util.Hashtable.put(Unknown
Source)
> at
org.apache.tools.
Hi Cyril,
I would suggest using the from ant-contrib, at the
project root level... It changed my life the day I started using it, and
no more complicated target-based frameowrk with 'if' and 'unless'
attributes everywhere.
Hope this helps,
BR
*Olivier Gies*
*Delivery Manager
Customs & Ta
PROBLEM: I'm trying to develop a general build framework. In so doing,
I need some mechanism for to provide a "conditional implementation"
for a target. We cannot solve this problem using .
Can anyone suggest an implementation?
Here's a couple ways that I tried,
There is a library I am going to use as an example.
Ivy downloads it from
http://repo1.maven.org/maven2/skaringa/skaringa/r1p8/skaringa-r1p8.jar
the library info: http://mvnrepository.com/artifact/skaringa/skaringa/r1p8
The library timestamp is 01-Aug-2005, as stated on the remote re
Hi, I don't know if I am in the right forum. I have the following problem. I
have create a Web Service which transforms a file from html to xml. When I
call that WS I get the following error:
java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source)
at org.apache.tools.ant.Propert
At the current customer I am working on, they use javawebstart (JWS) and the
libraries are versioned at CVS. As you are thinking, ivy is the best
candidate to manage those dependencies :)
However there is an obstacle, that I will explain. The JWS uses the
last-modified timestamp of each .jar file
2008/5/28 Martin <[EMAIL PROTECTED]>:
> Dave-
>
> Did you download the latest Bean Scripting Framework jar located at
> http://jakarta.apache.org/bsf/
Yes, 2.4, extracted bsf.jar
Tried it in the classpath child - no joy
Put it in ant/lib and it now works
regards
--
Dave Pawson
XSLT XSL-FO FAQ
Dave-
Did you download the latest Bean Scripting Framework jar located at
http://jakarta.apache.org/bsf/
HTH
Martin
- Original Message -
From: "Dave Pawson" <[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Wednesday, May 28, 2008 6:36 AM
Subject: script problem
Inside a target I have
On Wed, May 28, 2008 at 1:34 PM, Dave Pawson <[EMAIL PROTECTED]> wrote:
> 2008/5/28 Peter Reilly <[EMAIL PROTECTED]>:
>> Wait for ant 1.7.1.
>
> Thanks Peter. Any due date (roughly)?
There is a beta out,
http://people.apache.org/dist/ant/v1.7.1beta2/
I assume that a release will be made soon.
Pe
2008/5/28 Peter Reilly <[EMAIL PROTECTED]>:
> Wait for ant 1.7.1.
Thanks Peter. Any due date (roughly)?
>> Is the documentation wrong?
>>
> no ;-)
> """
> NB: This classpath cannot (currently) be used to specify the location
> of the BSF jar file. Also, due to classloading issues, languages tha
Wait for ant 1.7.1.
On Wed, May 28, 2008 at 12:55 PM, Dave Pawson <[EMAIL PROTECTED]> wrote:
> 2008/5/28 Knuplesch, Juergen <[EMAIL PROTECTED]>:
>> Do you have bsf.jar in the ANT-classpath?
>> (You can copy it in the lib-Folder of ANT)
>>
>> See "Ant-Tasks"-"Library dependencies" in
>> http://an
2008/5/28 Knuplesch, Juergen <[EMAIL PROTECTED]>:
> Do you have bsf.jar in the ANT-classpath?
> (You can copy it in the lib-Folder of ANT)
>
> See "Ant-Tasks"-"Library dependencies" in
> http://ant.apache.org/manual/
Also needed jakarta-commons-logging.jar
Thanks.
I don't want to clog up the ant
Is there a way to make force option property based,
Something like..
Documentation says,force is true if the attribute is present.
That's silly, because it does not allow use of a property as attribute
value as most of ant task do.
Sandeep.
Do you have bsf.jar in the ANT-classpath?
(You can copy it in the lib-Folder of ANT)
See "Ant-Tasks"-"Library dependencies" in
http://ant.apache.org/manual/
--
Jürgen Knuplesch
Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-Ursprüngliche Nachric
Inside a target I have
System.out.println("message is " + message);
The jar file contains the exception
$jar -tf bsf.jar |grep BSFException
org/apache/bsf/BSFException.class
yet when I run ant I get
BUILD FAILED
/files/java/build.xml:23: jav
As far as I undestand: yes.
Only the properties you give inside the task are given to ant or antcall.
The other properties are unset for the called target.
--
Jürgen Knuplesch
Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-Ursprüngliche Nachricht-
Von: C
Hi,
Values of Ant properties set in or are NOT kept between
different calls to or .
Note in particular that, for this reason, ant-contrib proivdes a
(a bit shaky, though) which WILL keep the values of
properties set in the called target, contrarily to or .
That said, I would add that
There can be issues with using and
- they are in the same VM
- there can be "leakages" between projects.
- the rules for basedir are a bit weird
I use the following (on linux):
and:
But doesn't setting the ineritall to false mean that the script you are
calling won't have access to properties you have set up ?
On Wed, May 28, 2008 at 11:03 AM, Knuplesch, Juergen <
[EMAIL PROTECTED]> wrote:
> But if you use or it is like you would start ANT a second
> time. Therfore the
But if you use or it is like you would start ANT a second
time. Therfore the properties
are set in the target or script that you call. The old values are lost if you
use the attribute
Inheritall=false
And using inside sets some properties to a value you define.
--
Jürgen Knuplesch
Jan
Unless I'm missing something here, that wouldn't work.
You can't redefine an ant property one it has already been defined in one
specific execution of the said script.
That's why I was trying to get the batch file to set up an environment
variable before executing the generic component.xml
But in your original post you have specified the component in your batch file.
> > > > Batch file contents are :-
> > > >
> > > > set component=common
> > > > ant -f %build.dir%/component.xml
Where is the difference?
Can't use ant or antcall's even in a nested structure. Reason being :-
Script process designed to build numerous components of an application.
Each of these components has a parameter set up in the properties file set
to Y or N to define whether that component is built during that execution of
th
If you use Task or you can run the target with different
content of a property.
E.g.
I even use this in loops made with antcontrb.
--
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbH
with nested ?
Or use of s?
Jan
The reason I'm not using ant is that :-
1. My main build.xml script calls the component.xml script
numerous times.
2. Each time the component.xml script is called, the variable
'component' needs
The reason I'm not using ant is that :-
1. My main build.xml script calls the component.xml script numerous times.
2. Each time the component.xml script is called, the variable 'component'
needs to be set to something different.
3. Component.xml is generic therefore don't want to hard code anythin
> I am calling a dos batch file from an Ant script using the
> following code :-
>
>
>
>
>
>
>
>
> On the assumption that I get the Microsoft Windows Copyright
> info appear, I
> assume the above commands are running ok. The only trouble
> is, the contents
> / commands in the b
I am calling a dos batch file from an Ant script using the following code :-
On the assumption that I get the Microsoft Windows Copyright info appear, I
assume the above commands are running ok. The only trouble is, the contents
/ commands in the batch file don't seen to get execu
29 matches
Mail list logo