AW: How can I check if file exists in gz compress file?

2011-05-09 Thread Knuplesch, Juergen
You could alternatively try to untar just the file you want to check.
This might result in a build failure, that you can catch with antcontrib

-Ursprüngliche Nachricht-
Von: Ben Tu [mailto:ben...@gmail.com] 
Gesendet: Freitag, 6. Mai 2011 18:09
An: user@ant.apache.org
Betreff: How can I check if file exists in gz compress file?

Hi,

Is there a task in Ant that I can check if the file exists in myfile.tar.gz
file without extracting it?



Here is the content of myfile.tar.gz after extracted.

Dir1/

   fileA

   fileB

dir2/

   fileC



I want to check if fileC exists in myfile.tar.gz without extracting
myfile.tar.gz. is there such a task in Ant for this purpose?



thanks, Ben

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



references id names stored in properties

2011-06-03 Thread Knuplesch, Juergen
Hello,

 

I want to call Ant from another Ant File and send some filsets: sth like this:

 







 





 



 

The variable local.filesetlist stores now a list of two filset ids.

 

In antfile2 I want to do sth. like this (using antcontrib):

 





Copy @{pack.fileset.id}

 



  









 

I get the following error:

D:\Entwicklung\Build\ReleasePaket\buildRelease\ant\dopeCreatePreparePackDir.xml:94:
 No directory specified for fileset.

 

Both filesets exist in the Antfile (I used inheritrefs=true), but I can not 
access them using a property. (I can if I use the names e.g. local.fileset1)

I use ANT 1.7.1.

 

Is this, how it should be?

Is this a bug?

 

Regards

 

Juergen

-- 

Jürgen Knupleschwww.icongmbh.de  

icon Systemhaus GmbHTel. +49 711 806098-275

Sophienstraße 40juergen.knuple...@icongmbh.de

D-70178 Stuttgart   Fax. +49 711 806098-299

 

Geschäftsführer: Uwe Seltmann

HRB Stuttgart 17655

USt-IdNr.: DE 811944121 

 

 



AW: references id names stored in properties

2011-06-03 Thread Knuplesch, Juergen
Thanks Rob!
I did not see this!

I changed now from location to value and now it works!
Refid did not help finally, because I want a list of fileset ids.

Jürgen

-Ursprüngliche Nachricht-
Von: Echlin, Robert [mailto:robert.ech...@windriver.com] 
Gesendet: Freitag, 3. Juni 2011 15:22
An: Ant Users List
Betreff: RE: references id names stored in properties

Hi Juergen,
Read the docs on the property task.

You want "refid" instead of "location".



Quote: 
"location - Sets the property to the absolute filename of the given file."
"refid  - Reference to an object defined elsewhere. Only yields reasonable 
results for references to PATH like structures or properties."

Rob
direct: +1.613.270.5796  |  robert.ech...@windriver.com
 

> -----Original Message-
> From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] 
> Sent: Friday, June 03, 2011 9:09 AM
> To: Ant Users List
> Subject: references id names stored in properties
> 
> Hello,
> 
>  
> 
> I want to call Ant from another Ant File and send some 
> filsets: sth like this:
> 
>  
> 
>  
>  dir="${example.basedir}" />
> 
> 
> 
>  
>   location="local.fileset1,local.fileset2" />
> 
>  
> 
>  
>  target="doit"
> 
>  inheritall="true"
> 
>  inheritrefs="true">
> 
>  
>   value="${local.filesetlist}" />
> 
>  
> 
> 
> 
>  
> 
> The variable local.filesetlist stores now a list of two filset ids.
> 
>  
> 
> In antfile2 I want to do sth. like this (using antcontrib):
> 
>  
> 
>  
>  param="pack.fileset.id"
> 
>  parallel="false">
> 
> 
> 
> Copy @{pack.fileset.id}
> 
>  
> 
>  preservelastmodified="true" overwrite="true">
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> I get the following error:
> 
> D:\Entwicklung\Build\ReleasePaket\buildRelease\ant\dopeCreateP
reparePackDir.xml:94: No directory specified for fileset.
> 
>  
> 
> Both filesets exist in the Antfile (I used inheritrefs=true), 
> but I can not access them using a property. (I can if I use 
> the names e.g. local.fileset1)
> 
> I use ANT 1.7.1.
> 
>  
> 
> Is this, how it should be?
> 
> Is this a bug?
> 
>  
> 
> Regards
> 
>  
> 
> Juergen
> 
> -- 
> 
> Jürgen Knupleschwww.icongmbh.de 
> <http://www.icongmbh.de/> 
> 
> icon Systemhaus GmbHTel. +49 711 806098-275
> 
> Sophienstraße 40juergen.knuple...@icongmbh.de
> 
> D-70178 Stuttgart   Fax. +49 711 806098-299
> 
>  
> 
> Geschäftsführer: Uwe Seltmann
> 
> HRB Stuttgart 17655
> 
> USt-IdNr.: DE 811944121 
> 
>  
> 
>  
> 
> 
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Including something from Ant contrib

2011-06-29 Thread Knuplesch, Juergen
You need to run taskdef:

  
  

-Ursprüngliche Nachricht-
Von: laredotornado [mailto:laredotorn...@gmail.com] 
Gesendet: Dienstag, 28. Juni 2011 17:32
An: user@ant.apache.org
Betreff: Including something from Ant contrib

Hi,

I'm using Ant 1.8.1.  I have downloaded ant-contrib-1.0b3.jar and placed it
in my $ANT_HOME/lib directory.  However, when I include this in my build.xml
file ...



I get the error "Problem: failed to create task or type propertyregex. 
Cause: The name is undefined." upon running my Ant build file.  What else do
I need to do to get this task recognized?

Thanks, - Dave

--
View this message in context: 
http://ant.1045680.n5.nabble.com/Including-something-from-Ant-contrib-tp4532215p4532215.html
Sent from the Ant - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: optional depends for targets

2011-07-21 Thread Knuplesch, Juergen
I Use the  from antcontrib to achieve this.

-Ursprüngliche Nachricht-
Von: Vimil Saju [mailto:vimils...@yahoo.com] 
Gesendet: Donnerstag, 21. Juli 2011 23:17
An: Ant Users List
Betreff: optional depends for targets

Hi,

Is it possible for a target to optionally depend on another target? For example 
consider 

target A has an optional dependency on target B 
target C depends on target A

When the build is invoked with target C then only targets A and C should get 
executed in the order A,C. However if the build is invoked with targets C,B,A 
then the targets should be executed in the order B, A, C.

Thanks
Vimil

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Is required within a block?

2011-07-25 Thread Knuplesch, Juergen
As far as I know: yes!

-Ursprüngliche Nachricht-
Von: Steve Amerige [mailto:steve.amer...@sas.com] 
Gesendet: Montag, 25. Juli 2011 22:25
An: Ant Users List
Betreff: Is  required within a  block?

An easy question, I hope:

  Is  required within a  block?

Assume that there is only one thread, that  is not being used, etc.

Enjoy,
Steve Amerige
SAS Institute, Deployment Software Development



Letter @{letter}



vs:


Letter @{letter}




AW: fork, JUnit and Linux

2011-11-14 Thread Knuplesch, Juergen
I use OpenSuse 11.4 32 Bit
I use Java 1.6.0.17, JDK from Sun
Before that I tried 1.6.022 and OpenJDK.

The problem I have is when I use the fork attribute.

Do I have to tell Linux to take the old classpath along. How?
With windows it works the way I use it.

In the moment I do not use fork anymore and everything is working.
But I would like to use fork but I do not see where the problem is and how to 
solve it.


-Ursprüngliche Nachricht-
Von: Stefan Bodewig [mailto:bode...@apache.org] 
Gesendet: Freitag, 11. November 2011 15:58
An: user@ant.apache.org
Betreff: Re: fork, JUnit and Linux

On 2011-11-09, Knuplesch, Juergen wrote:

> when I run a  task with

> fork="yes"

> under LINUX the test does not even start:

LINUX is a pretty broad term here.  Which version of java are you using?
I use Ant on Linux using OpenJDK or Sun's Java without any problems.
If this is gcj then you may have quite a bit of work to do to make thigs
run correctly.

Stefan

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Cancelling Ant Build in mid-flight?

2011-11-20 Thread Knuplesch, Juergen
Hello,

Best hint: Maybe you had a few programs in Eclipse started. To really stop your 
Ant Task you have to make sure, that you stop the correct console.

I use Eclipse Indigo (3.7) and before I used 3.6 and 3.5.
I use it every day and I cannot remember to see such an effect.
But anyway stopping and starting Eclipse is not unusual for me in many 
circumstances (There are days when Eclipse drives me crazy...).
So this would not bother me, just surprise, and after a restart everythings 
fine.

Do you really use 2.7? This seems to be a very old Eclipse!!

---
Jürgen


-Ursprüngliche Nachricht-
Von: Rhino [mailto:rhi...@sympatico.ca] 
Gesendet: Samstag, 19. November 2011 05:34
An: ant-user
Betreff: Cancelling Ant Build in mid-flight?


  I just had an unusual problem. My Ant build stalled in mid-flight with 
no messages or warnings to tell me why. I wanted to simply run it again 
but every time I tried to start it, Eclipse told me that there was 
already an Ant build in progress.

I had no idea how to stop a build which didn't really seem to be running 
in the first place. (I started the build and it seemed fine then went 
out for a few hours and it seems to have stalled shortly after I left.) 
I tried clicking on the red "stop" square but that didn't seem to have 
cancelled it. I terminated it and removed it in the Debug window but 
that doesn't seem to have killed it either. Finally, I got it to die by 
exiting Eclipse and restarting it.

In case this should happen again, what is the right way to kill an Ant 
build in Eclipse?

I'm running Eclipse 2.7 with the native Ant, which is Ant 1.8.2. I'm on 
Windows XP SP2.

--
Rhino


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: fork, JUnit and Linux

2011-12-09 Thread Knuplesch, Juergen
Hello,

I just use a workaround (not to fork):

I made fork a configurable property.
Under Linux I set the property to false or no.

Then the tests are correctly executed.
But I would be happy to find the real solution.
At least I'm not alone anymore...

Jürgen


-Ursprüngliche Nachricht-
Von: roject [mailto:roject@allianz.com.au] 
Gesendet: Freitag, 9. Dezember 2011 01:46
An: user@ant.apache.org
Betreff: Re: fork, JUnit and Linux

HI, i am having the same problem with running ant junit in linux. Do you
solve the problem?

--
View this message in context: 
http://ant.1045680.n5.nabble.com/fork-JUnit-and-Linux-tp4977907p5060443.html
Sent from the Ant - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



derby Classpath issue

2012-01-19 Thread Knuplesch, Juergen
Hello,

 

I was creating an ANT-task that is using derby.jar as jdbc driver.

I put derby.jar in the front of the classpath of my task.

But every time I tried to reload sth. into my derby database it failed: sth. 
like "JDBC driver not found"

 

Yesterday I found a workaround for my problem:

I moved derby.jar into the classpath of ANT.

And that worked.

 

My question is Why does it nor work with derby.jar in my tasks classpath, 
because this is the solution I prefer?

(As far as I know, ANT creates a new classloader for the new task. It seems 
that the derby stuff is only searched in ANTs parent classloader)

 

Yours

Jürgen

 

 

 

-- 

Jürgen Knupleschwww.icongmbh.de  

icon Systemhaus GmbHTel. +49 711 806098-275

Sophienstraße 40juergen.knuple...@icongmbh.de

D-70178 Stuttgart   Fax. +49 711 806098-299

 

Geschäftsführer: Uwe Seltmann

HRB Stuttgart 17655

USt-IdNr.: DE 811944121 

 

 



AW: Fail build when 'replace' task cannot find expected number oftokens

2008-02-05 Thread Knuplesch, Juergen
Addition:
You could also use the  Task togeteher with 

And of course use the fail-Task to make the Build fail 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Prashant Reddy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 5. Februar 2008 13:06
An: Ant Users List
Betreff: Fail build when 'replace' task cannot find expected number oftokens

Hello ANT users,

Using ANT 1.6.5, a build XML i am using makes use of  task to replace 
certain token in a bunch of Javascript files.

I would like the build to fail when the replace of a token fails, so that when 
someone changes the source file such that  does not find any tokens to 
replace; the incident is caught straight away.

Right now replace only supports printing of summary containing number of tokens 
that were replaced, but this is not good enough for me.

Humm...Sounds like i should look up if ant-unit can help me out.

I would appreciate any suggestions. (Apart from using resourcecount which is in 
ANT 1.7)

Thanks for your time.
-Prashant


-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Fail build when 'replace' task cannot find expected number oftokens

2008-02-05 Thread Knuplesch, Juergen
Maybe you could copy the file without changing of the timestamp (attribute 
preservelastmodified).
Then do the replace on your file.
Then test via  if a change happened.
Delete the copy

This will only work, if replace does not change the timestamp, in case of no 
changes.

Just an idea...

-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Prashant Reddy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 5. Februar 2008 13:06
An: Ant Users List
Betreff: Fail build when 'replace' task cannot find expected number oftokens

Hello ANT users,

Using ANT 1.6.5, a build XML i am using makes use of  task to replace 
certain token in a bunch of Javascript files.

I would like the build to fail when the replace of a token fails, so that when 
someone changes the source file such that  does not find any tokens to 
replace; the incident is caught straight away.

Right now replace only supports printing of summary containing number of tokens 
that were replaced, but this is not good enough for me.

Humm...Sounds like i should look up if ant-unit can help me out.

I would appreciate any suggestions. (Apart from using resourcecount which is in 
ANT 1.7)

Thanks for your time.
-Prashant


-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: task won't run in cruise control but runs from windows command prompt...

2008-02-05 Thread Knuplesch, Juergen
You should echo the property "folder-exists" in both targets.

Maybe the property is already set when you reach the first task. ANT will never 
unset it.

CC runs a loop.
Find out in what situations the errer happens.
Is it the first call by CC or the second.

-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Christopher Styles [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 5. Februar 2008 15:21
An: Ant Users List
Betreff: task won't run in cruise control but runs from windows command 
prompt...

Hi,

I know this isn't a Cruise Control list, but I need some assistance with this 
issue, since it centers around Ant - and no one from the Cruise Contol list has 
responded... When I run the tasks below in cruise control 2.7.1, the second 
task fails, which happens to be dependent on the first...
When I run them from the Windows command prompt they work great, but I'm not 
yielding the same results in Cruise Control... What's suppose to happen is, 
target "lib-ext" will be executed, but first the dependency target 
"lib-ext-test" gets executed. If the folder exists, it will set the 
"folder-exists" property. Then, Ant goes back to the "lib-ext" task and checks 
the dependency. If "folder-exists" is set, "lib-ext" will be executed. 
Otherwise, it won't.  In other words, the "lib-ext-test" target checks to see 
if the folder exists, and if it does, "lib-ext" ftps the files within the 
folder If the folder doesn't exist, "lib-ext" doesn't execute, and the 
process moves on to the next target in the sequence... As I stated earlier, it 
works great from the Windows command prompt, but in Cruise Control it fails and 
just says "folder doesn't exist"... Why won't this execute in Cruise Control 
like it does from the Windows command prompt...??? If someone could assist me 
with this I'd surely appreciate it...


   




 





 



Thanks
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Substituting the value according to the property name

2008-02-05 Thread Knuplesch, Juergen
Use propertycopy or similar Task with regex from antcontrib 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 6. Februar 2008 00:21
An: Ant Users List
Betreff: Re: Substituting the value according to the property name

could your provide an example on how you envision using ${${x}}

thanks
M-
- Original Message -
From: "norken76" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, February 05, 2008 6:12 PM
Subject: Re: Substituting the value according to the property name


>
> Hello guys,
> I couldn't find a hint for my question.. so I am asking it here.
> so, has anyone used a way to achieve the ${${x}} which means.. to get 
> a value of a property value. 
>
>
> thanks
>
>
>
> Srinivas_Chandolu wrote:
> >
> >> We are replacing the occurrence of a string with another value by 
> >> reading a predefined property file as given below.
> >>
> >> 
> >>
> >> 
> >> 
> >> 
> >>  >> value="${ems.versionmajor}"/>
> >> 
> >>
> >> The above file i.e. ems.iap_xml is getting replaced perfectly with 
> >> the defined values.
> >>
> >> For example the token $PRODUCT_VERSIONMAJOR$ has been replaced with 
> >> '1' after running the above script.(as defined in build.properties
> >> file)
> >>
> >> However, if the user made some changes for the file 
> >> emsMaster.iap_xml, the requirement is to bring back the old 
> >> strings(values) for those property names. So the script which has 
> >> been used for replacing back is as below.
> >>
> >> 
> >> 
> >>   >> file="emsMaster.iap_xml" token="${ems.versionmajor}"
> >> value="$$PRODUCT_VERSIONMAJOR$$"/>
> >>   
> >>
> >> However, with this script iam facing the problem that what ever the 
> >> property values are '1' in the emsMaster.iap_xml it is getting 
> >> replaced with values $PRODUCT_VERSIONMAJOR$
> >>
> >> For example the emsMaster.iap_xml file contains the following 
> >> entries
> >> :
> >>
> >>  1  
> >>  1 
> >>
> >> In the above script, the requirement is to replace the value of 1 
> >> for the ProductVersionMajor property to $PRODUCT_VERSIONMAJOR$ but 
> >> not to the imageOption property. How can we achieve this one?
> >>
> >> Thanks,
> >> Srinivas
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> > additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Substituting-the-value-according-to-the-property-name-
tp2944791p15300062.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant and Junit

2008-02-06 Thread Knuplesch, Juergen
How do I run in Ant 1.6.5 a Junite-Tests that are stored in a classfile that 
contains the .class-files of the tests.

 uses a fileset, but how do I put the content of a jarfile to Junit?
If I do it in a Batchfile it is no problem.

Example this does not work (The jarfile is part of the junit.classpath):

  

  
  
  







-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maillogger Mail missing

2008-02-11 Thread Knuplesch, Juergen
Hello,

In our network I use a lot of Ant-Files. I use the Maillogger and the 
mail-Task. On one machine the mail task is working fine, but the Mailogger Mail 
is missing. If I use this Antfile on a different machine, the maillogger Mail 
is working fine. A few weeks ago it even worked fine on that machine. How can I 
find out what the problem is? 

-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Junit report giving out of memory error

2008-02-11 Thread Knuplesch, Juergen
I had similar problems.

I suggest tghe following:
1.  has a maxmemory attribute. I use 1024. I use forking.
2. Split the tests via include and exclude. I parted our tests into three parts.
3. Be sure that your memory option will not be overwritten by a later called 
Batchfile
4. Increase the memory another time. 

-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Mevitha [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 12. Februar 2008 04:51
An: user@ant.apache.org
Betreff: Junit report giving out of memory error


Hi,

I am using WSAD 5.1 to run an ant script to run junit test cases.
Everything is fine except when the junit report starts, I am getting the below 
error.

unitTestReport:

[mkdir] Created dir: D:\TempTesting\TestReports

[junitreport] Using Xalan version: XSLT4J Java 2.6.5

BUILD FAILED: java.lang.StackOverflowError

Total time: 4 minutes 21 seconds

It is working fine on another machine. But not in mine.
I have tried giving ANT_OPTS=-Xmx500M

Please let me know how to resolve this.

Thanks in advance.

Mevitha


--
View this message in context: 
http://www.nabble.com/Junit-report-giving-out-of-memory-error-tp15425981p15425981.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pdf-File and replace

2008-04-21 Thread Knuplesch, Juergen
Hello,

When I change a binary file with the replace-Task, the file is in a wrong 
format.
If I do the change with a Editor the file is correct.

The replaced pattern is found only once in the document.

What is the difference between replace and doing the sam with an Editor?

Greetings



-- 
Jürgen Knupleschwww.icongmbh.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Running the

2008-05-14 Thread Knuplesch, Juergen
What system you us? Linux, Windows???

Is wgwt a batchfile or a executable file?

The Ant manual says:
Note that .bat files cannot in general by executed directly. One normally needs 
to execute the command shell executable cmd using the /c switch. 


  



  







I discourage the use of arg line, because I had trouble with it.
Use  instead:





Greetings
-- 
Jürgen 
-Ursprüngliche Nachricht-
Von: Craig Riley [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. Mai 2008 12:41
An: user@ant.apache.org
Betreff: Running the 
http://localhost/ant/build/index.cfml"; /> 


Ant doesn't error when I run it which isn't helpful. If I go to the file path 
in a browser it runs ok and does everything it should, and if I run the command 
from a command line (c:\wget\wget -O -
http://localhost/ant/build/index.cfml) it  also works fine.

I suspect this maybe something to do with the ant/eclipse setup or a missing 
library on my machine but I'm really not sure?

Please help! :)


Cheers

Craig






This message was sent using IMP, the Internet Messaging Program.




-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: ANT manual/ppt/pdf

2008-05-14 Thread Knuplesch, Juergen
I use the online doku (http://ant.apache.org/manual/) (you can download the 
doku) and Steve Loughran / Erik Hatchers book.


-- 
Jürgen 
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. Mai 2008 15:17
An: user@ant.apache.org
Betreff: ANT manual/ppt/pdf

Hi all,

 

I am quite a new to the ANT world. Can somebody have the ppt/pdf/manual to 
learn the ANT in detail.

 

Please help.

 

Regards,

Irfan

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: how to change the property value at run time

2008-05-14 Thread Knuplesch, Juergen
Thats just the special thing about ANT-properties: You can not change them, for 
good reasons.

But JAVA_HOME does not look like an Ant-property. What do you want to do?


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. Mai 2008 15:20
An: user@ant.apache.org
Betreff: how to change the property value at run time

Hi All,

 

I need to change the value of a specific property at run time. Can somebody 
please let me know how I can do that.

 

Let's say the property name is "JAVA_HOME" and suppose I want to change the 
value of that property to "d:\install"

 

Please help.

 

Regards,

Irfan

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Defining ant target to run junit tests using dbunit

2008-05-20 Thread Knuplesch, Juergen
If I read this http://www.dbunit.org/anttask.html right, than you have to use 
operation, export or compare.

I use JUNIT but not dbunit. I guess somewhere you have to tell the task, what 
test you are running.



-- 
Jürgen 

Von: tmni [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 20. Mai 2008 17:15
An: user@ant.apache.org
Betreff: Defining ant target to run junit tests using dbunit


I am relatively new to ant and am having trouble setting up a target to run a 
series of junit tests.
These tests all run fine when I launch them via eclipse.  But if I try to run 
ant directly via command prompt, I get errors.  First, I was getting error like:
Error 'Unexpected failure during bean definition parsing in resource URL 
[file:spring-misc-junit.xml] at:
Bean 'mailSender'; nested exception is java.lang.SecurityException: class 
"javax.mail.AuthenticationFailedException"'s signer information does not match 
signer information of other classes in the same package.

I thought it might have something to do with authenticating to database, so 
tried adding the following dbunit info.  I got an error that there must be at 
least 1 step in a dbunit task. I tried adding a task to do an insert, but don't 
know why this would be necessary since the test themselves set up the test 
data, accessing a test data xml file.  Even with that change, I get error that 
oracle driver cannot be loaded.

The tests use dbunit and the underlying database is Oracle (accessed via 
Hibernate in application).
I can't figure out how to define the test target and I cannot find a sample 
that does this.  Does anyone have a sample ant build file that runs junit tests 
that use dbunit/hibernate/oracle combination??


  
  


--
View this message in context: 
http://www.nabble.com/Defining-ant-target-to-run-junit-tests-using-dbunit-tp17342896p17342896.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Checking for build.properties and properties upon initialization

2008-05-21 Thread Knuplesch, Juergen
Use the  task from antcontrib, which makes things easier.  


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Dimitris Mouchritsas [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. Mai 2008 16:37
An: Ant Users List
Betreff: Re: Checking for build.properties and properties upon initialization

Dimitris Mouchritsas wrote:
> Hi everyone.
> I'm trying to create a sample project to test if the build.properties 
> file exists and if the required properties are set upon 
> initialization. But I'm not quite sure if I use correctly the 
> condition task. This is what I've come up with right now:
>
>   default="init">
>
>description="Checks for required properties">
>
>
>
>
>
>
>
>
>
>
>
>
>description="Check build properties and initialize 
> directory structure"
>depends="check-required-properties">
>
>
> 
>
> Without the build.properties file the build process succeeds. Why?
> Thanks
> Dimitris
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
>
Hmm, ok I managed to sold this once I understood that fails needs a "true" 
condition and my condition was failing ofcourse. So I changed it to:









Now I'd like to ask another question. Would it be possible to know which 
property is not set, so I can print it?
Thanks
Dimitris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Calling a cmd batch file from Ant

2008-05-28 Thread Knuplesch, Juergen
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 GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Chris Green [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Mai 2008 09:51
An: Ant Users List
Cc: [EMAIL PROTECTED]
Betreff: Re: Calling a cmd batch file from Ant

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 anything 
variables in 4. Once variable set, can't be changed.

Honestly, there is some underlying logic behind all of this.

Chris

On Wed, May 28, 2008 at 9:41 AM, <[EMAIL PROTECTED]> wrote:

> > 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 
> > executed.
>
>
> http://ant.apache.org/faq.html#batch-shell-execute
>
>
> > Batch file contents are :-
> >
> > set component=common
> > ant -f %build.dir%/component.xml
>
> Why not use  ?
>
>
> Jan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Calling a cmd batch file from Ant

2008-05-28 Thread Knuplesch, Juergen
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: Chris Green [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Mai 2008 11:08
An: Ant Users List
Betreff: Re: Calling a cmd batch file from Ant

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 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
> -Ursprüngliche Nachricht-
> Von: Chris Green [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 28. Mai 2008 10:56
>  An: Ant Users List
> Betreff: Re: Calling a cmd batch file from Ant
>
> 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
>
> Chris
>
> On Wed, May 28, 2008 at 10:49 AM, <[EMAIL PROTECTED]> wrote:
>
> > 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?
> >
> > 
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >
> > 
> >
> > Build one: ${one} 
> > Build two: ${two} 
> > 
> >
> > one.properties:
> > # Specifies which parts for component 'one' to do one=J two=N
> >
> > two.properties:
> > # Specifies which parts for component 'one' to do one=J two=J
> >
> >
> >
> > Jan
> >
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: Chris Green [mailto:[EMAIL PROTECTED]
> > > Gesendet: Mittwoch, 28. Mai 2008 10:36
> > > An: Ant Users List
> >  > Betreff: Re: Calling a cmd batch file from Ant
> > >
> > > 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 the script.
> > >
> > > Therefore, more than one component may need to be built during one 
> > > execution of the build script.
> > >
> > > On this basis, the controlling ant script, build.xml cannot have 
> > > the component variable defined within it, even nested, as it 
> > > potentially needs to be redefined multiple times.
> > >
> > > The component.xml file (generic) which is called again and again 
> > > for each component that needs to be build. Want to keep this 
> > > generic and as simple as possible. Therefore no hard coding using 
> > > if statements to set the 'component' variable.
> > >
> > > On Wed, May 28, 2008 at 10:05 AM, Knuplesch, Juergen < 
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > > 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 GmbHTel. +49 711 806098-275
> > > > S

AW: Calling a cmd batch file from Ant

2008-05-28 Thread Knuplesch, Juergen
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   
-Ursprüngliche Nachricht-
Von: Chris Green [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Mai 2008 10:56
An: Ant Users List
Betreff: Re: Calling a cmd batch file from Ant

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

Chris

On Wed, May 28, 2008 at 10:49 AM, <[EMAIL PROTECTED]> wrote:

> 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?
>
> 
>
>
>
>
>
>
>
>
>
>
> 
>
> 
>
> Build one: ${one} 
> Build two: ${two} 
> 
>
> one.properties:
> # Specifies which parts for component 'one' to do one=J two=N
>
> two.properties:
> # Specifies which parts for component 'one' to do one=J two=J
>
>
>
> Jan
>
>
>
> > -Ursprüngliche Nachricht-
> > Von: Chris Green [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 28. Mai 2008 10:36
> > An: Ant Users List
>  > Betreff: Re: Calling a cmd batch file from Ant
> >
> > 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 the script.
> >
> > Therefore, more than one component may need to be built during one 
> > execution of the build script.
> >
> > On this basis, the controlling ant script, build.xml cannot have the 
> > component variable defined within it, even nested, as it potentially 
> > needs to be redefined multiple times.
> >
> > The component.xml file (generic) which is called again and again for 
> > each component that needs to be build. Want to keep this generic and 
> > as simple as possible. Therefore no hard coding using if statements 
> > to set the 'component' variable.
> >
> > On Wed, May 28, 2008 at 10:05 AM, Knuplesch, Juergen < 
> > [EMAIL PROTECTED]> wrote:
> >
> > > 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 GmbHTel. +49 711 806098-275
> > > Sophienstraße 40
> > > D-70178 Stuttgart   Fax. +49 711 806098-299
> > >
> > > Geschäftsführer: Uwe Seltmann
> > > HRB Stuttgart 17655
> > > USt-IdNr.: DE 811944121
> > > -Ursprüngliche Nachricht-
> > > Von: Chris Green [mailto:[EMAIL PROTECTED]
> > > Gesendet: Mittwoch, 28. Mai 2008 09:51
> > > An: Ant Users List
> > > Cc: [EMAIL PROTECTED]
> > > Betreff: Re: Calling a cmd batch file from Ant
> > >
> > > 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 anything
> > > variables in 4. Once variable set, can't be changed.
> > >
> > > Honestly, there is some underlying logic behind all of this.
> > >
> > > Chris
> > >
> > > On Wed, May 28, 2008 at 9:41 AM, <[EMAIL PROTECTED]> wrot

AW: script problem

2008-05-28 Thread Knuplesch, Juergen
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 Nachricht-
Von: Dave Pawson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Mai 2008 12:36
An: Ant Users List
Betreff: script problem

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: java.lang.NoClassDefFoundError:
org/apache/bsf/BSFException

I can't see what is wrong,

Any help appreciated.

regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Current dir of ant-Build / Java-Task

2008-06-06 Thread Knuplesch, Juergen
Hello,

I want to start an application using the java-Task.

My application writes files relative to the path I start it from.

The application is starting fine and writing files relative to the path of my 
Batchfile, that starts the buildfile.

How can I set the working dir for my java-task, so that the output files go, 
where I want them to go?

I dont want to change this path for may whole build, just for this application 
I want to start.

Or do I have to change the working dir of my build before I start this task?

This is my task:

   
  
  

  

 


-- 
Jürgen Knuplesch

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Current dir of ant-Build / Java-Task

2008-06-09 Thread Knuplesch, Juergen
Thanks. I could not see it 


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Dominique Devienne [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 6. Juni 2008 17:55
An: Ant Users List
Betreff: Re: Current dir of ant-Build / Java-Task

> Or do I have to change the working dir of my build before I start this task?

>From the doc for :

dir The directory to invoke the VM in. (ignored if fork is disabled)

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: unable to execute JAR file

2008-06-18 Thread Knuplesch, Juergen
Use classname attribut instead of MANIFEST:
 


 

--
Jürgen Knuplesch




Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 18. Juni 2008 09:26
An: user@ant.apache.org
Betreff: unable to execute JAR file



Hi All,

 

I have 10 java files and I have written Ant build.xml to compile and create JAR 
file which contains the .class files. Now my requirement is that I need to 
execute/install the JAR file but unfortunately I can't do this as I am getting 
following error.

 

D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>java -jar test.jar

Failed to load Main-Class manifest attribute from

test.jar

 

D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>

 

Please find the attached java code and build script.

 

Please help

 

Regards

Irfan.

 



How to pass an unset property with inheritall=false

2008-07-16 Thread Knuplesch, Juergen
Hello,

I want to use antcall together with inheritall=false:

  


There are some targets that dont run, when paramsometimesunset is unset.
If I pass the parameter like this and paramsometimesunset is unset, it is set 
in the called target.
But I want it to be just the same value (either unset or some value)

Any ideas?

-- 
Jürgen Knuplesch 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to run an ant target on success/failed build

2008-07-22 Thread Knuplesch, Juergen
You can do this by configuring the maillogger in your startscript:

ant build_ant.xml -logger org.apache.tools.ant.listener.MailLogger 

Then you have to set the following properties
MailLogger.mailhost=
MailLogger.from=
MailLogger.failure.subject=failed
MailLogger.success.subject=successfull
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Then you will send the output of Ant to the specifies addresses.

Another strategy (big solution) is using CruiseControl






-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: p2008 [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 23. Juli 2008 00:35
An: user@ant.apache.org
Betreff: How to run an ant target on success/failed build


I need to be able to trigger running a specific ant target when the build 
succeeds, and another one when it fails.  This will be used to send out an 
email indicating the status of the build.

I have done this in the past in nant (.NET) which has a built in property 
called nant.onsuccess and one called nant.onfailure.  

Is there something similar in ant, or any does anybody know how to do this?

Thanks!
--
View this message in context: 
http://www.nabble.com/How-to-run-an-ant-target-on-success-failed-build-tp18600235p18600235.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread Knuplesch, Juergen
To retrieve changed properties you can use antcallback or antfetch from 
antcontrib.

http://ant-contrib.sourceforge.net/tasks/tasks/index.html 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: cowwoc [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 18. August 2008 23:09
An: user@ant.apache.org
Betreff: Enforcing "depends" order for 3rd-party targets?


Hi,

Give:



how do I guarantee that "internal" gets executed before "external" if 
"external" is declared by some 3rd-party script I have no control over (that 
is, I can't add depends="internal" to "external").

It should be noted that "internal" declares properties that "external" looks 
for, so AntCall won't work.

Thanks,
Gili
--
View this message in context: 
http://www.nabble.com/Enforcing-%22depends%22-order-for-3rd-party-targets--tp19040027p19040027.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: variables or a counter ?

2008-08-19 Thread Knuplesch, Juergen
Antcontrib has a Math Task to add and variables that can change their value.
It also has a for task.

http://ant-contrib.sourceforge.net/tasks/tasks/index.html 


-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: Ivar Bratberg [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 19. August 2008 14:22
An: Ant Users List
Betreff: variables or a counter ?

Hi,
I have the following problem I try to solve in ant.
I should check a www server for a certain result each minute.
I should keep on checking until a desired result is given ( the file downloaded 
should exceed a certain limit ) In addition it should have a kind of timeout so 
it it will return if it has tried too many times.


I I have made a ant macro which calls itself recursively since there is
no  task
I have also access to a  task so I manage to check if I have got the
wanted result


But as mentioned I would like to have a timeout, by counting up a
parameter which is given to the recursive macro.
Is this possible ?
I have not seen any  or  task.

Do some of you have better suggestions for solving this ?
Note, I cannot use  task, because I have to check not only for
error code on the response, but the text itself( I manage whith checking
the length of the file downloaded >

To summarize my questions:

- Can I add to variables/properties and but the result in a third
property ?
- Is there a better way than recursive macro to achieve the effect of
 looping ?

Ivar



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: ant global properies (variable)

2008-08-28 Thread Knuplesch, Juergen
Am I right, that you use foreach from Antcontrib?

I guess that foreach does a usual ant task. This task never returns any 
properties to the caller. It works only in one direction.

You could use the antcontrib for-Task combined with the antcontrib AntFetch 
Task.
In AntFetch (and antcallback) you can set the attribute "return ":

Example from teh antcontrib docu:
 
${image.directory}

Greetings


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: mindspin311 [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 27. August 2008 19:58
An: user@ant.apache.org
Betreff: Re: ant global properies (variable)


Here's a simple version of what I'm trying to do.



  

   
  





  

  

  

  
  

  
  

  
  

  


--
View this message in context: 
http://www.nabble.com/ant-global-properies-%28variable%29-tp19184177p19186036.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
 You need junit.jar somewhere


-- 
Jürgen Knuplesch 
Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: JOMO00 [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 28. August 2008 09:06
An: user@ant.apache.org
Betreff: Re: java.lang.ClassNotFoundException" when running junit task


Hi All,
I read just read the thread below. Ich have the same Exception by unsing ant 
and . I know there is a problem with the classpath, but I don't know 
what is wrong. Which *jar files do I need an my classpath?Here my script




  
   
  
  
  
  




  
   


My Error in detail is: 
 
 [junit] Running JUnit.junit.samples.AllTests
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Testsuite: JUnit.junit.samples.AllTests
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Caused an ERROR
[junit] JUnit.junit.samples.AllTests
[junit] java.lang.ClassNotFoundException: JUnit.junit.samples.AllTests
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[junit] at java.lang.Class.forName0(Native Method)
[junit] at java.lang.Class.forName(Class.java:247)
[junit] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[junit] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[junit] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Thank you for your help!
JOMO00
 

venkata prasad wrote:
> 
> Hi All,
> 
> I am getting the below error while execting junit task.
> 
> 
> 
> Testsuite: BaseServiceCommunicationManagerTest
> 
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> 
> 
> 
>Caused an ERROR
> 
> BaseServiceCommunicationManagerTest
> 
> java.lang.ClassNotFoundException: BaseServiceCommunicationManagerTest
> 
>at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 
>at java.security.AccessController.doPrivileged(Native 
> Method)
> 
>at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 
>at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 
>at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> 
>at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 
>at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 
>at java.lang.Class.forName0(Native Method)
> 
>at java.lang.Class.forName(Class.java:164)
> 
> 
> 
> Below is the build script.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> includes="**/*.jar"/>
> 
>
> 
>
> 
>
> 
> 
> 
> includes="weblogic.jar "/>
> 
>  
> 
> 
> 
> 
> 
>  fork="yes">
> 
> 
> 
>   
> 
>   
> 
> 
> 
> 
> 
> dir="./output/DynappsEar/WEB-INF/classes/com/cig/dynapp/test">
> 
>
> 
>
> 
>   
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> I am running at ant-1.7 and junit-4.4.
> 
> 
> 
> 
> 
> Thanks,
> 
> Prasad
> 
> 

--
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%22-when-running-junit-task-tp14167580p19195253.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
Hello,

Obviously you do not have the Testclass BaseServiceCommunicationManagerTest in 
the classpath.

You do not do anything elementary wrong. It is "just" a classpath-problem. 
(Missing jars, wrong written classes esp. Upper / lowercase)
This happens a lot and sometimes you loose your faith in IT.
But this happens to almost everyone.
The only solution: Never give up, till you find the error.

Lets have a look:
You call JUnit.junit.samples.AllTests: 

Are this the sample Tests of junit?
Have you written a test on your own?
Where 

The AllTests probably adds BaseServiceCommunicationManagerTest to the Testsuite.

Check your classpath for BaseServiceCommunicationManagerTest.class. 
Check your jarfiles on the classpath for this class.

If java does not lie, you do not have it on your classpath.


Good luck

Jürgen

-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: JOMO00 [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 28. August 2008 18:24
An: user@ant.apache.org
Betreff: Re: java.lang.ClassNotFoundException" when running junit task


Hi,
I already have great problems with ant and junit. I run ant 1.6.5 and junit
4.5 is this combination ok?
Should i better use ant 1.7.0 or 1.7.1?

I always get a ClassDefNotFoundException or ClassNotFoundException.
I tried to put junit.jar and my source directory to classpath, but i always get 
a Exception.
here is my script:
...

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
...
Please give me an overview of what i have to add to my classpath. Which 
.jar-files and other files or directories.





venkata prasad wrote:
> 
> Hi All,
> 
> I am getting the below error while execting junit task.
> 
> 
> 
> Testsuite: BaseServiceCommunicationManagerTest
> 
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> 
> 
> 
>Caused an ERROR
> 
> BaseServiceCommunicationManagerTest
> 
> java.lang.ClassNotFoundException: BaseServiceCommunicationManagerTest
> 
>at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 
>at java.security.AccessController.doPrivileged(Native 
> Method)
> 
>at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 
>at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 
>at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> 
>at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 
>at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 
>at java.lang.Class.forName0(Native Method)
> 
>at java.lang.Class.forName(Class.java:164)
> 
> 
> 
> Below is the build script.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> includes="**/*.jar"/>
> 
>
> 
>
> 
>
> 
> 
> 
> includes="weblogic.jar "/>
> 
>  
> 
> 
> 
> 
> 
>  fork="yes">
> 
> 
> 
>   
> 
>   
> 
> 
> 
> 
> 
> dir="./output/DynappsEar/WEB-INF/classes/com/cig/dynapp/test">
> 
>
> 
>
> 
>   
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> I am running at ant-1.7 and junit-4.4.
> 
> 
> 
> 
> 
> Thanks,
> 
> Prasad
> 
> 

--
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%22-when-running-junit-task-tp14167580p19204128.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to wait for completion of execution of batch file ?

2008-09-01 Thread Knuplesch, Juergen
Isn't that the default behaviour of the exec task? 

How do you start your Batchfile?


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: sactiw [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 1. September 2008 20:02
An: user@ant.apache.org
Betreff: How to wait for completion of execution of batch file ?


Hi Guys,
   I am executing a batch file via Ant using "exec" task. Could anyone 
tell tell me some way in which I can stop Ant's execution till the execution of 
batch files doesn't get completed. I don't want to use a time-out trick for it 
as I don't know that how much time that scriot might take to complete.

In short I want that my Ant execution should wait for completion of the batch 
file that it has executed using exec task.

Thanks and Regards,
Sactiw.
--
View this message in context: 
http://www.nabble.com/How-to-wait-for-completion-of-execution-of-batch-file---tp19258525p19258525.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: How to wait for completion of execution of batch file ?

2008-09-02 Thread Knuplesch, Juergen
When the batch file is finished, ANT can go on, or does the batch file start 
ther servers asynchron?

What you can do is a kind of polling with Ant. I used the following using 
antcontrib. I start an asynchron server and have to check if the server is 
started. Therfore I use the following: 

  
  
  

So if your serverstartprocess starts a process at a defined address, you can 
check it.

Greetings


-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: sactiw [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 2. September 2008 10:09
An: user@ant.apache.org
Betreff: Re: AW: How to wait for completion of execution of batch file ?


Thanks for the reply JK.

Yeah I know that it is not the default behaviour of exec or sshexec task.

I am using exec to start my batch file execution, that batch file actually 
reboots certain machines now I want to wait until all of those machines get 
rebooted.

For that I feel I need to make ANT execution wait for that batch file execution 
to get complete. Any idea that apart from using some kind of time out what else 
I can do to achieve that.

-Sactiw

Knuplesch, Juergen wrote:
> 
> Isn't that the default behaviour of the exec task? 
> 
> How do you start your Batchfile?
> 
> 
> -- 
> Jürgen Knupleschwww.icongmbh.de
> icon Systemhaus GmbHTel. +49 711 806098-275
> Sophienstraße 40
> D-70178 Stuttgart   Fax. +49 711 806098-299
> 
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
> -Ursprüngliche Nachricht-
> Von: sactiw [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 1. September 2008 20:02
> An: user@ant.apache.org
> Betreff: How to wait for completion of execution of batch file ?
> 
> 
> Hi Guys,
>I am executing a batch file via Ant using "exec" task. 
> Could anyone tell tell me some way in which I can stop Ant's execution 
> till the execution of batch files doesn't get completed. I don't want 
> to use a time-out trick for it as I don't know that how much time that 
> scriot might take to complete.
> 
> In short I want that my Ant execution should wait for completion of 
> the batch file that it has executed using exec task.
> 
> Thanks and Regards,
> Sactiw.
> --
> View this message in context:
> http://www.nabble.com/How-to-wait-for-completion-of-execution-of-batch
> -file---tp19258525p19258525.html Sent from the Ant - Users mailing 
> list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/How-to-wait-for-completion-of-execution-of-batch-file---tp19258525p19265859.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Setting classpath for nested ant call

2008-09-07 Thread Knuplesch, Juergen
Hello,

What fails?
A task or the whole ant?

You can set the classpath in the tasks you call. 



-- 
Jürgen Knuplesch

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: merlin_the_happy_pig [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 5. September 2008 17:00
An: user@ant.apache.org
Betreff: Setting classpath for nested ant call


Ant newbie here. I need to call another ant task in a different build file, so 
I do:


 
  
 http://www.nabble.com/Setting-classpath-for-nested-ant-call-tp19333163p19333163.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: conditional exclude

2008-09-07 Thread Knuplesch, Juergen
You could use the  task from antcontrib and use two copy tasks depending on 
your property. 


-- 
Jürgen Knuplesch
Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: heights08 [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 6. September 2008 09:08
An: user@ant.apache.org
Betreff: conditional exclude


Hello. I need to apply two exclude conditions, one mandatory, one conditional 
based on properties value. I wish I could just use "if" with an "exclude"
tag. Alas, I've tried many other things. This is the current non-working
version:




























BUILD FAILED
C:\dev\vcm\main\vui-vcm\build.xml:275: Only one selector is allowed within the 
 tag

--
View this message in context: 
http://www.nabble.com/conditional-exclude-tp19343682p19343682.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Custom element for jar task.

2008-09-10 Thread Knuplesch, Juergen
Hello,


The error you get tells simply, that your created task is not an allowed 
subelement of the jar-task. 
You run into a syntax error.
It is not possible to change the jar task (or any other task) by adding your 
own tasks as subelements.

Probably you have to write your own jar-task, that will understand your 
subelement.

What i understood:
You created a task called autoservice. 

What does this task do? 
Does it produce a classpath??

What do you expect should the jar task do with the element?

Tell us and then you will get probably some hints to do what you want.

Then you have to write your own Ant-Task doing the stuff you want.

-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: John5342 [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 10. September 2008 20:08
An: user@ant.apache.org
Betreff: Custom element for jar task.

Hi,

I have a rapidly evolving project which contains a large and varying number of 
service providers. I was hoping to create to create a more specialized version 
of the service element that automatically scans for providers in a give 
classpath but have run into some trouble asuming what i want to do is even 
possible.

I started off by subclassing org.apache.tools.ant.types.spi.Service which 
provides the current service element and added setClassPath() and some lgic to 
automatically scan the given classpath for any classes implementing the the 
given type and add add appropriate providers to Service. I then added the 
following to my build.xml:







  
  




autoservice.taskdef runs fine but when i get to the jar target i get the 
following error:

/Projects/ag/build.xml:103: jar doesn't support the nested "autoservice"
element.

Is what i am trying to do even possible? and if so any ideas where to go from 
here?

Thanks, John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: Setting classpath for nested ant call

2008-09-10 Thread Knuplesch, Juergen
Just create the right classpath in the calling task using sth like:
 
  
  
 

Then you use this classpath in the compile task using refid.

You will have the refid your.classpath becaus you use inheritrefs=true in your 
-call

Consult the manual for durther details.



-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: merlin_the_happy_pig [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 11. September 2008 01:53
An: user@ant.apache.org
Betreff: Re: AW: Setting classpath for nested ant call


The nested ant call fails because of compilation errors (classpath wrong!).
So I need to set the classpath in the ant call of the calling build.xml, but 
can't seem to get this to work?



Knuplesch, Juergen wrote:
> 
> Hello,
> 
> What fails?
> A task or the whole ant?
> 
> You can set the classpath in the tasks you call. 
> 
> 
> 
> --
> Jürgen Knuplesch
> 
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
> -Ursprüngliche Nachricht-
> Von: merlin_the_happy_pig [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 5. September 2008 17:00
> An: user@ant.apache.org
> Betreff: Setting classpath for nested ant call
> 
> 
> Ant newbie here. I need to call another ant task in a different build 
> file, so I do:
> 
> ...
> 
> The problem is is that this nested ant call fails because the 
> classpath is wrong. Normally this target is called after a setenv.bat 
> file has been called, which generates the correct classpath. I would 
> like to do something
> like:
> 
>
>  
> 
>   
> 
> I can't find a way of doing this!?
> --
> View this message in context:
> http://www.nabble.com/Setting-classpath-for-nested-ant-call-tp19333163
> p19333163.html Sent from the Ant - Users mailing list archive at 
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
> commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/Setting-classpath-for-nested-ant-call-tp19333163p19425348.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use zipped Junittestclasses

2008-10-16 Thread Knuplesch, Juergen
Hello,

I want to run Junittests that are stored as classfiles in a jar file.

Is it possible with Ant 1.6.5 or Ant 1.7 to use the junit-task without unjar 
the testfiles?

I want do do sth like this:


  

  
  
  


  




This does not select any test.

How can I select test out of jutest.jar?

(If I do it via a Batchfile it is possible!)

-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: ****SPAM**** Build in multiple java versions using Ant

2008-10-20 Thread Knuplesch, Juergen
 
You have to add a property to design the compiler compliance to 1.4, 1.5 or 1.6.

Read the manual, to find out the name of the parameters!!

There are at least two ways to do this:

1.Many tasks have a fork option, where you can tell the JVM you want to use to 
do this task
2.You simply could start ant itself under zhe JVM you want to use and 
automatically all tasks you do not fork via 1 woll be run under this VM

-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: scuzzie [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 21. Oktober 2008 00:26
An: user@ant.apache.org
Betreff: SPAM Build in multiple java versions using Ant


Hi,

I have a project written in NetBeans 6.1 that I need to be able to compile on 
demand using any JDK version from 1.4.2, on a machine that does not have 
NetBeans installed (but does have Ant of course). The app compiles under
1.4.2 and up using the Ant xml files generated by NetBeans. At the moment, the 
options are 1.4.2/1.5/1.6 as they are the JDKs that are installed on the 
machine. The application uses Swing so has a couple of dependant jars.

Modifying the xml build files is not an option. Specifying a properties file 
from the Ant command-line is fine, and I have had to do this anyway (as well as 
copying the swing and NetBeans copylibs jars to the machine). The file is 
autogenerated and is created automatically before calling Ant.

Are there properties I can add to my properties file to specify which version 
of the SDK to compile with? Any other suggestions?

Using Windows.
--
View this message in context: 
http://www.nabble.com/Build-in-multiple-java-versions-using-Ant-tp20080105p20080105.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to access the basedir of ANOTHER project in Eclipse?

2008-10-29 Thread Knuplesch, Juergen
What do you want to do with that?

Maybe it is easier to help, if we understand whar you want to achieve.

I use ant4eclipse which is a big help for me. 


-- 
Jürgen 
-Ursprüngliche Nachricht-
Von: Ben Stover [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 27. Oktober 2008 23:27
An: user@ant.apache.org
Betreff: How to access the basedir of ANOTHER project in Eclipse?

Assume I use a build.xml in Project AAA.
As part of a property definition I want to define a folder from ANOTHER project 
BBB within the same Eclipse installation.

However the actual path should NOT be entered directly (=absolute) but relative 
to the current workspace. It should go similar like:



How can I refer this external dir with Ant? 

Ben




-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: clearer output for junit task

2008-10-30 Thread Knuplesch, Juergen
1.If you use the task junit-report, it will create HTML, tells all about which 
test had an error or a failure and on the page of each Test there is a link to 
stdout and stderr. I guess this is what you want???

2.When I use the junit-task Í get the following output on my console:
 [junit] Testsuite: de.icongmbh.commons.MaskFormatterTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,688 sec
[junit] Testsuite: de.icongmbh.commons.NumberUtilsTest
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,687 sec



-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Brendan Miller [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 29. Oktober 2008 23:46
An: Ant Users List
Betreff: clearer output for junit task

I'm running junit unit tests from ant through the junit task. There have been a 
few times where information will be printed to stdout, or exceptions will be 
thrown, and it's difficult to determine which unit test produced the output or 
exception. Is there any way to make ant's junit task print something like "now 
runining testMyUnitTest()" before it tries to execute each test, so it's clear 
where the output is coming from?

Thanks,
Brendan

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: param hierarchy inverse to property hierarchy

2008-11-12 Thread Knuplesch, Juergen
Hello,

Again: The behaviour of ANT is ok, because you need this very often!

If you have no access at all to ant1.xml and this script is holy, so that no 
one is allowed to change it and you need to call target t1, then there is no 
way to change foo for target t2.

But...
You import ant1.xml, therefore you have power over ant1.xml. 
E.g. you can change ant1.xml before you import it or:

What you could do is:
1.Instead of importing t1 you can use  to call the target t2 directly.

Best solution is:
Talk to the owner of ant1.xml and ask him to change ant1.xml in the following 
way:

=== ant1.xml ===

... do something



... do something


... do something

=== ant1.xml ===

This will not change the behaviour of ant1.xml, except someone changes 
${paramproperty}

And exactly this is, what you will do:
=== ant2.xml ===






=== ant2.xml ===

This will do the trick...

-- 
Jürgen Knuplesch 

-Ursprüngliche Nachricht-
Von: Dieter König [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 12. November 2008 16:53
An: user@ant.apache.org
Betreff: Re: param hierarchy inverse to property hierarchy

Hi,

i expected that i will be missunderstood :(. So again:
=== ant1.xml ===

... do something



... do something


... do something

=== ant1.xml ===

=== ant2.xml ===






=== ant2.xml ===

Suppose i have no write access to ant1.xml but i have to use it. 
Furthermore i have to call the target "t1" (and not "t2" directly where passing 
the parameter would work) because all the other logic of "t1" 
should be used also. This way to pass "myvalue" as a value of "foo" doesnt 
work. And i didnt found a way else.
That's why in my opinion the behaviour of ant should be changed. Or do has 
somebody a solution for this problem?

Kind Regards
Dieter König

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: param hierarchy inverse to property hierarchy

2008-11-12 Thread Knuplesch, Juergen
In my opinion, ANT is doing exactly what ANT should do.

The param attribute is used to overwrite selected properties in the called 
target.
Param is not a datatype like properties. Param is just used to set properties 
for a called task.

So, when you use antcall with param, it should always set the property to the 
value you provide.
But only in the called task and not in the calling task.

So, when you give out foo in the second task, you receive bar, no matte when
Foo in the third task  is bar2, no matter when you ask.



-- 
Jürgen Knuplesch 
-Ursprüngliche Nachricht-
Von: Dieter König [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 12. November 2008 14:25
An: user@ant.apache.org
Betreff: param hierarchy inverse to property hierarchy

Hello list,

i have encountered a strange behaviour of ant scripts as property and param 
elements are using incompatible overwrite rules. Please let me explain in a 
small diagram.

- set some property
- use antcall with inheritall=true
- the called target tries to set the property again ==> first property is used

- use antcall with some param (e.g. )
- the called target uses antcall with param providing a new value (e.g. 
)
==> called target uses second value (in the example foo would be "bar2")

This means that if in a script an  using  is used there is no 
chance to overwrite that setting/property when calling that script. Am i right? 
Or is there a way to set such a parameter?
Is this the desired behaviour of ant?

In my opinion the same overwrite-behaviour for  elements as for 
 elements would be better. The user of an ant script would then 
always be able to set all the parameters or propertys.

Best regards
Dieter König

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Setting a global property in a target. Possible?

2008-11-17 Thread Knuplesch, Juergen
You are right: Properties are immutable!

Your problem seems to be a different one:
If you do not run the target, the property wont be set.
Make sure you set the property in a task that is called before you use it 
elsewhere.


-- 
Jürgen Knuplesch 
-Ursprüngliche Nachricht-
Von: Alexander Ziller [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 17. November 2008 09:33
An: user@ant.apache.org
Betreff: Setting a global property in a target. Possible?

Hi

I'm trying to set a property inside a target. In the definition of ant 
properties, it is said that they are immutable. "Beeing set once, they cannot 
be reset again". But I had to find out that properties set inside a  
are not valid outside of said target.

Is this intended and if so, are there ay elegant solutions to make this 
property project-based?

Thanks

Alex



-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Running a remote process in background

2008-11-18 Thread Knuplesch, Juergen
Hello, 

So what is happening instead? Is ANT waiting for the server to stop?

Is the server starting?

Did you try it with a more somple command to start on the remote machine? (sth. 
Like "cat")

I used these days the exec-command on a Windows machine and it works fine now.
I use it to start a DB-Server in the background. Afterwards I send this server 
a stop-request.
There I use the "spawn" argument to start the program in a different process.

I also use  and this is working fine.

1.Is sshexec behaving as exec? (kicking off a background process or is it 
waiting on the remote command to end?)
2.Could you send us (parts of) the task, that does not end?

Greetings

-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Susheel Raina [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 18. November 2008 23:57
An: user@ant.apache.org
Betreff: Running a remote process in background

Hi,

We are having Weblogic Server on a linux box and the deployment set up is done 
from Windows Box remotely.

I have to start/stop the server using ant and for that I am using sshexec 
command.

Now the problem with it is that I need to exit the task once the server is 
started but in my case it doesn't happen.

The build process is automated and since the ant command doesnt exit the build 
goes on and doesn't stop.

I tried to use ant-contrib task forget but that is not helping too as the 
command never executes.

I dont want to change the Weblogic start shell script.

Any Suggestions please.


--
Regards,

Susheel Raina

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: how to make replace task not expand Java properties like ${user.home}

2008-11-18 Thread Knuplesch, Juergen
Never did this, but I would try sth like:




-- 
Jürgen Knuplesch  
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 19. November 2008 05:43
An: user@ant.apache.org
Betreff: how to make replace task not expand Java properties like ${user.home}

Hi.  I'm writing an ant task to replace

APPBASE

with

${user.home}/public_html


The command



does replaces APPBASE, but it expands ${user.home}.  I don't want it to expand 
this variable as I will be copying server.xml to another location, and the 
expanded value of the Java property is different.

(BTW, I'm creating several different server.xml, and each one has a totally 
different value for APPBASE.)

So I tried



but the output is has the back slashes in it.

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Upgrade from 1.6.5 to 1.7.1

2008-11-20 Thread Knuplesch, Juergen
Hi,

I upgraded from 1.6.5 to 1.7.1 a few weeks ago. Everything is working fine.

I use antcontrib and ant4eclipse a lot. No problems so far.

I had to upgrade because zipfileset is supported for the junit-task in 1.7.1 
but not in 1.6.5 and
I had to run tests out of a jar-file.

Hope this helps a bit.

Greetings


-- 
Jürgen Knuplesch  
-Ursprüngliche Nachricht-
Von: Gilbert Rebhan [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 20. November 2008 21:17
An: Ant Users List
Betreff: Upgrade from 1.6.5 to 1.7.1

Hi,

i want to upgrade from ant 1.6.5 to 1.7.1

Some questions, hope for some answers/tips due to your practical experience.

Given is a workflow, with a bunch of selfwritten tasks, macrodefs/scriptdefs 
(mostly ruby),running on windows 2000/ 2003/XP and AIX, with sun jdk 1.5.0_11

1. Are there any gotchas i have to be aware of, means are their
   any standard tasks/types that behave different from 1.6.5, maybe
   only in special circumstances ?
2. Is Ant 1.7.1 fully downwardly compatible, means just switching the
   ant version without changing my scripts doesn't break the workflow ?
   Maybe it's only about using newer versions of bsf.jar ... etc. ?
3. What are the most significant new features one should get used to ?
4. Which new features should be used where possible because of
   significant performance boost ?
5. Any of the common Ant addons, like f.e. antcontrib, antelope,
   antxtras that do not work with ant 1.7.1 ?

!! and finally !!
i need arguments to convince my boss to upgrade a "hey boss, it's almost 
christmas ..."
won't be enough ;-)))


Thanks for any hints and tips.

Regards, Gilbert




-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: ****SPAM**** how to use ?

2008-11-26 Thread Knuplesch, Juergen
Who creates this dir?
Who knows the name?

The best way is to pass the information on to your antfile.



-- 
Jürgen Knuplesch   
-Ursprüngliche Nachricht-
Von: ndario [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 26. November 2008 15:54
An: user@ant.apache.org
Betreff: SPAM how to use ?


Hello,

I want to copy a set of files to a directory which is dynamically generated.
I know only a part of name of that directory, it looks like this "tmp*abc":

tmp24235abc
tmp76957abc
tmp556abc
tmp6344abc


I need to copy files to a directory which has latest creation date. I guess it 
would be possible with  and  elements but I have no idea how to 
use it? This example

  

  


  
  
  
  http://ant.apache.org/index.html"/>

  

  

finds latest file and copies it to the destination, but I want the oposite.
I need to determine correct destination.

Could anybody give me a hint how to use , please.

Thanks
--
View this message in context: 
http://www.nabble.com/how-to-use-%3Cfirst%3E--tp20702429p20702429.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task

2008-12-02 Thread Knuplesch, Juergen
 
Hello,

1.I use antcontrib also a lot! I agree, that it would be nice to add this to 
ANT.

2.You want ordered filesets not unordered filsets, but it should be the user 
who defines the order!
I sometimes had the same problem. The problem is, that filsets do not guarantee 
any order.
I think filelists could help, but I never really tried.
I solved it by putting several filsets in the order I want.


3.I did not try this, but it seems not too difficult, perhaps I dont know 
enough about cp.
What about

 
  

  



-- 
Jürgen Knuplesch

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Francis Galiegue [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 2. Dezember 2008 15:53
An: user@ant.apache.org
Betreff: Feature requests: include ant-contrib, unordered file sets, "cp"-like 
copy task

Hello list,

I've been working with ant for three years now, and have implemented from 
scratch a build system that works fine. We use ant 1.6.5.

However, I have found myself using "external" utilities more than once because 
of some limitations/unexpected behaviors, so I'd like to know what's cooking 
for the next version(s) of ant.

1. ant-contrib

I find myself using ant-contrib extensively throughout the project for the 
following tags:

* var,
* for,
* assert,
* try/catch,
* if/then/else,
* propertyregex

I especially find var and if/then/else useful (in fact, must-haves), and find 
the use of for/propertyregex much, much easier (much more natural) to use than 
ant's mappers when handling complex file renaming (OK, the fact that I know 
regexes quite well also helps).

Are there plans to include ant-contrib in ant itself?

2. Unordered file sets

We have to concatenate JavaScript files into one big file and then minify it. 
The list of files to minify is within a file itself. So, I first tried to use 
the concat task with .

The problem is, this reorders the file list in alphabetical order and we don't 
want that! Is there a plan to have unordered file sets (which is a pleonasm 
anyway, since a set has no order by definition)?

3. "cp"-like copy task

Here's a question: how do you do, with ant, the equivalent of this command:

cp -r */src/java/* dstdir/

Well, I have struggled for more than one hour trying to do this, and couldn't.
So I gave up, and resorted to using ... Resulting in a non portable way 
of doing things, but it's very simple and it works.

It would be very, very useful to have such a task by default.

Have fun!
--
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
[EMAIL PROTECTED]
40 avenue Raymond Poincaré
75116 Paris

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How can I figure out what JUnit test case is failing?

2008-12-03 Thread Knuplesch, Juergen
Use the  to get the results in HTML. 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 3. Dezember 2008 18:31
An: Ant Users List
Betreff: How can I figure out what JUnit test case is failing?

Hi,

I'm using Ant 1.6.5 with Eclipse 3.4 (Win XP), JRE 1.5.  I run a particular 
JUnit task that fails, but I can't figure out which test within my JUnit 
TestCase class is failing.  Here's my task ...

  

   
  



  
  
  
  

  

but all that is output to my Eclipse console is

run-delete-add-test:
[junit] Running DeleteAddSubscriberTest
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.156 sec

BUILD FAILED
C:\Temp\CedarPoint_Service\build-junit-test.xml:105: Test 
DeleteAddSubscriberTest failed


How can I get more detailed information about what is going wrong?  There are 8 
tests within the DeleteAddSubscriberTest class.  
Thanks, - Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How can I figure out what JUnit test case is failing?

2008-12-03 Thread Knuplesch, Juergen
So what do you want to do?

1.Run a junittest under Eclipse? (There is a good Junit plugin for Eclipse: Use 
it!)
2.Run a junit-test under ANT? (e.g. run a bunch of tests in batchmode): Use 



-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 3. Dezember 2008 18:31
An: Ant Users List
Betreff: How can I figure out what JUnit test case is failing?

Hi,

I'm using Ant 1.6.5 with Eclipse 3.4 (Win XP), JRE 1.5.  I run a particular 
JUnit task that fails, but I can't figure out which test within my JUnit 
TestCase class is failing.  Here's my task ...

  

   
  



  
  
  
  

  

but all that is output to my Eclipse console is

run-delete-add-test:
[junit] Running DeleteAddSubscriberTest
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.156 sec

BUILD FAILED
C:\Temp\CedarPoint_Service\build-junit-test.xml:105: Test 
DeleteAddSubscriberTest failed


How can I get more detailed information about what is going wrong?  There are 8 
tests within the DeleteAddSubscriberTest class.  
Thanks, - Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: How can I figure out what JUnit test case is failing?

2008-12-04 Thread Knuplesch, Juergen
If you have the plugin you can now run the 
DeleteAddSubscriberTest
Using the plugin. You should open the Eclipse JUNIT view somewhere on your 
Eclipse IDE: This is a Eclipse gui for your Tests.
Then you open the 
DeleteAddSubscriberTest.java in the Eclipse Editor.
Then you use the right mousebutton, click, run as, JunitTest, and go...

The Junit view will show you where your test fails.
You can even doubleclick on the stacktrace of the Junit-failure.
You can even debug Unittests using Eclipse (Debug as Junit Test)
But this is rather Eclipse stuff than Ant Stuff...

Greetings

Jürgen

-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 4. Dezember 2008 19:25
An: Ant Users List
Betreff: Re: AW: How can I figure out what JUnit test case is failing?

Hi,

I have this plugin -- org.junit4_4.3.1 -- in my C:\Eclipse\plugins directory.

Yes, I am running an Ant build file in Eclipse.  What I would like is for the 
specific test case that is failing to be printed to my console.  Right now, I 
only get this

run-delete-add-test:
[junit] Running DeleteAddSubscriberTest
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.172 sec

Here's the screen shot to put it in context 
(http://screencast.com/t/jxz3k7f7nc).  But which test failed, and why?  My 
question is, is it possible to output that information the console?  I'm fine 
writing it to a separate file if that is the only possible solution.

 - Dave



>  ---Original Message---
>  From: Knuplesch, Juergen <[EMAIL PROTECTED]>
>  Subject: AW: How can I figure out what JUnit test case is failing?
>  Sent: Dec 04 '08 06:51
>  
>  So what do you want to do?
>  
>  1.Run a junittest under Eclipse? (There is a good Junit plugin for 
> Eclipse: Use it!)  2.Run a junit-test under ANT? (e.g. run a bunch of 
> tests in batchmode): Use 
>  
>  
>  --
>  Jürgen Knuplesch
>  -Ursprüngliche Nachricht-
>  Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
>  Gesendet: Mittwoch, 3. Dezember 2008 18:31
>  An: Ant Users List
>  Betreff: How can I figure out what JUnit test case is failing?
>  
>  Hi,
>  
>  I'm using Ant 1.6.5 with Eclipse 3.4 (Win XP), JRE 1.5.  I run a particular 
> JUnit task that fails, but I can't figure out which test within my JUnit 
> TestCase class is failing.  Here's my task ...
>  
>    
>     printsummary="on" showoutput="true">
>       
>      
>    
>    
>    
>          
>           outfile="junit.delete.add.result">
>          
>          
>    
>    
>  
>  but all that is output to my Eclipse console is
>  
>  run-delete-add-test:
>  [junit] Running DeleteAddSubscriberTest
>  [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.156 
> sec
>  
>  BUILD FAILED
>  C:\Temp\CedarPoint_Service\build-junit-test.xml:105: Test 
> DeleteAddSubscriberTest failed
>  
>  
>  How can I get more detailed information about what is going wrong?  
> There are 8 tests within the DeleteAddSubscriberTest class.  Thanks, - 
> Dave
>  
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
>  
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: ****SPAM**** Re: Generating Hyperlink with Ant

2008-12-08 Thread Knuplesch, Juergen
Better have two ways to start your Tests:
1.as Batch Ant
2.using the Eclipse JUNIT plugin without ANT 


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Zmaj [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 7. Dezember 2008 23:25
An: user@ant.apache.org
Betreff: SPAM Re: Generating Hyperlink with Ant


Yes i know this but i want to provide a hyperlink inside the console to such a 
file. ?




David Weintraub wrote:
> 
> Have you seen the  task? This specifically creates a 
> webpage based upon the JUnit test outputs. Then, all you need to do is 
> open up the output of the  as a HTML document.
> --
> David Weintraub
> [EMAIL PROTECTED]
> 
> 
> On Sun, Dec 7, 2008 at 8:56 AM, Zmaj <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hello,
>>
>> is there a way to generate a hyperlink with an ant task in eclipse 
>> console ?
>> I want to dynamiclly  generate hyperlinks to files inside the eclipse 
>> console when running the junit ant task.
>>
>> thanks
>> Ivan
>> --
>> View this message in context:
>> http://www.nabble.com/Generating-Hyperlink-with-Ant-tp20881270p208812
>> 70.html Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>> additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

--
View this message in context: 
http://www.nabble.com/Generating-Hyperlink-with-Ant-tp20881270p20886717.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: ****SPAM**** How include arbitrary jars on javac classpath?

2009-01-19 Thread Knuplesch, Juergen
 Hello,

What happens under Windows? The syntax should be the same.
What errors come up?

What do you want to do with the fileset??


If you use 

  

The property fname has the full path.

-- 
Jürgen Knuplesch

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: shwick [mailto:uhimat...@hotmail.com] 
Gesendet: Dienstag, 20. Januar 2009 01:35
An: user@ant.apache.org
Betreff: SPAM How include arbitrary jars on javac classpath?


Is it possible to reference paths in a file?

I have a file that contains a list of paths to jars, ex:

home/user1/jar1.jar
home/user1/toolbox/jar2.jar
randomDir/jar3.jar
...

I was able to reference them by setting dir to the root directory,



but this is going to be used on windows and linux, so what happens for windows?

I need to refer to absolute paths.  I tried setting dir="" and prefixing the 
paths with / but that didn't work.

Any help is appreciated.
--
View this message in context: 
http://www.nabble.com/How-include-arbitrary-jars-on-javac-classpath--tp21554837p21554837.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: setup environment for java task

2009-02-13 Thread Knuplesch, Juergen
 Hello,

I would translate the "bat" files to ANT-Tasks.
This is a lot of work, but than your Antfile can decide what bat-jobs you run 
and when.

Another way is to run the bat-files itself inside Ant using the exec-task, 
which is a bit tricky to handle.

To be honest: I dont like Batchfiles, so I would prefer "translating" the stuff 
to Ant, so that I have the control out of Ant.
But maybe, if you need the Batchfiles as well, then you produce redundancy, if 
you translate it to Ant.

Greetings

Juergen


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] 
Gesendet: Freitag, 13. Februar 2009 08:27
An: 'Ant Users List'
Betreff: setup environment for java task

Let's say I have a series of setupEnv.bat files in my source repository that I 
need to execute as part of setting up my runtime environment before executing 
my java code with the java task.  I don't see an elegant way of doing this.  I 
could execute these bat files as part of my build.bat before invoking ant 
itself.  However, I don't like this approach as it would interfere with my 
build environment.  I only want it to affect my runtime environment when I 
launch java code from my build.xml.  For example, my "build.bat compile" 
command should not invoke the setupEnv.bat files, but my "build.bat launch" 
command should.  I don't want to start writing a lot of logic in my simple 
build.bat script which just launches ant to detect what target is being run to 
know whether to invoke the setupEnv.bat files.  I was hoping for something more 
elegant inside ANT itself.  The java task already provides a way to pass in 
environment variables, but I don't see how I could have it execute some bat 
files first to setup the environment.

Does anybody know of an elegant way of doing this or some 3rd party ant plugin 
that can do it?

I don't even know if it is possible in java.  You would have to somehow invoke 
a separate process and then feed it commands to run (like executing batch 
files) to setup its environment, and then pass it the JVM command line to 
finally invoke the java class.

---
Shawn Castrianni

--
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: setup environment for java task

2009-02-13 Thread Knuplesch, Juergen
Hello, 

There are some interseting arguments to exec like spawn (standard is false) etc.
I never tried this, so someone else might know exactly.

But I think it is worth a try to use the exec task for a test and see what 
happens.
I think it is possible to keep the settings of a Batchfile you run.

Greetings

-- 
Jürgen Knuplesch

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] 
Gesendet: Freitag, 13. Februar 2009 09:36
An: 'Ant Users List'
Betreff: RE: setup environment for java task

Thanks for the suggestion, but here is my problem:

1. These batch files are used at runtime from an end user after installing the 
product with an installer.
2. Therefore, these batch files cannot be converted to ANT as that would 
duplicate the logic and could get out of sync 3. I am trying to recreate an end 
user's runtime environment with ANT so that I can launch our application or run 
unit tests with the same environment which is why I want to execute those same 
batch files 4. executing each batch file in an exec task only affects the 
process spawned by the exec task and is not remembered from one batch file to 
the next so when I finally launch my java class, that environment from the 
batch files is already gone, I think

---
Shawn Castrianni


-Original Message-
From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
Sent: Friday, February 13, 2009 2:05 AM
To: Ant Users List
Subject: AW: setup environment for java task

 Hello,

I would translate the "bat" files to ANT-Tasks.
This is a lot of work, but than your Antfile can decide what bat-jobs you run 
and when.

Another way is to run the bat-files itself inside Ant using the exec-task, 
which is a bit tricky to handle.

To be honest: I dont like Batchfiles, so I would prefer "translating" the stuff 
to Ant, so that I have the control out of Ant.
But maybe, if you need the Batchfiles as well, then you produce redundancy, if 
you translate it to Ant.

Greetings

Juergen


--
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com]
Gesendet: Freitag, 13. Februar 2009 08:27
An: 'Ant Users List'
Betreff: setup environment for java task

Let's say I have a series of setupEnv.bat files in my source repository that I 
need to execute as part of setting up my runtime environment before executing 
my java code with the java task.  I don't see an elegant way of doing this.  I 
could execute these bat files as part of my build.bat before invoking ant 
itself.  However, I don't like this approach as it would interfere with my 
build environment.  I only want it to affect my runtime environment when I 
launch java code from my build.xml.  For example, my "build.bat compile" 
command should not invoke the setupEnv.bat files, but my "build.bat launch" 
command should.  I don't want to start writing a lot of logic in my simple 
build.bat script which just launches ant to detect what target is being run to 
know whether to invoke the setupEnv.bat files.  I was hoping for something more 
elegant inside ANT itself.  The java task already provides a way to pass in 
environment variables, but I don't see how I could have it execute some bat 
files first to setup the environment.

Does anybody know of an elegant way of doing this or some 3rd party ant plugin 
that can do it?

I don't even know if it is possible in java.  You would have to somehow invoke 
a separate process and then feed it commands to run (like executing batch 
files) to setup its environment, and then pass it the JVM command line to 
finally invoke the java class.

---
Shawn Castrianni

--
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



xslt Task

2009-03-09 Thread Knuplesch, Juergen
Hello,

we want to intergrate a xsl-Transformation into our Buildprocess. The XSLT runs 
fine together with Saxon processor. Inside Ant it does not run.

Why cant Ants XSLT not understnad this XSLT?

What is a good solution?
Integrate saxon into Ant? How?

Greetings

Juergen


-- 
Jürgen Knuplesch   


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: xslt Task

2009-03-09 Thread Knuplesch, Juergen
I found online an solution. I just needed to add the saxon jar into the Ant 
classpath.

It worked, amazing!

Thanks for help anyway.

Greetings

Juergen

-- 
Jürgen Knuplesch 
-Ursprüngliche Nachricht-
Von: Francis Galiegue [mailto:f...@one2team.com] 
Gesendet: Montag, 9. März 2009 17:01
An: Ant Users List
Betreff: Re: xslt Task

Le lundi 09 mars 2009, Knuplesch, Juergen a écrit :
> Hello,
> 
> we want to intergrate a xsl-Transformation into our Buildprocess. The XSLT 
runs fine together with Saxon processor. Inside Ant it does not run.
> 
> Why cant Ants XSLT not understnad this XSLT?
> 
> What is a good solution?
> Integrate saxon into Ant? How?
> 

What error?

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Developing in Java with ANT

2009-03-17 Thread Knuplesch, Juergen
Hello,

If you read the ant.bat file you see

"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" 
"-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp 
"%CLASSPATH%" %ANT_CMD_LINE_ARGS%

Therefore "org.apache.tools.ant.launch.Launcher" out of "ant-launcher.jar" is 
the Java class Ant starts with.
So you need all the used ANT-Jars on your classpath and call the main method of 
this class or do yourself, what the main method does.


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: David Nemer [mailto:davidne...@gmail.com] 
Gesendet: Montag, 16. März 2009 22:04
An: user@ant.apache.org
Betreff: Developing in Java with ANT

Hello Everyone,

I'm really new to Ant, and I need some help, my task is to code in JAVA a 
program to checkout a version of a open source project, compile it and run the 
test script which is in ANT.

I'm working on the Ant-Doxygen Project (but it could be any project).
http://sourceforge.net/projects/ant-doxygen

I'm already successful with coding the "checkout a version of a repository"
part.

In Ant-Doxygen project, they already have an XML file to build the project.
So once I have checked out the Project, all I need to do I to run ant to build 
the project. But, how can I code a way to run Ant to build this project? ( I 
need to code that in Java... I can't just go to my command line and run Ant.)

Thank you so much in advance
--
David Nemer

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ****SPAM**** Adding specific jar to classpath

2009-03-23 Thread Knuplesch, Juergen
Hello

What do you want to do with this jar?
Add it to Ant or use it to javac sth. Or else?

To integrate a jar on the classpath of Ant it is enough to put the jar in the 
lib dir of Ant. 


Greetings
-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: eyalg1972 [mailto:eyal_go...@bmc.com] 
Gesendet: Montag, 23. März 2009 23:14
An: user@ant.apache.org
Betreff: SPAM Adding specific jar to classpath


Hi,

Does anyone knows how to add a specific jar to the classpath?

I know that there is a property- additional.classpath, but I don't know how to 
use it...

Eyal
--
View this message in context: 
http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p22670440.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ****SPAM**** Re: AW: ****SPAM**** Adding specific jar to classpath

2009-03-24 Thread Knuplesch, Juergen
Hi,


Of course.
The javac task has a nested classspath element and classpath attribute and you 
can add a classpath reference...
Read the Ant doku about javac to learn how to do it: 
http://ant.apache.org/manual/


 Greetings


-- 
Jürgen Knuplesch  

-Ursprüngliche Nachricht-
Von: eyalg1972 [mailto:eyal_go...@bmc.com] 
Gesendet: Dienstag, 24. März 2009 08:26
An: user@ant.apache.org
Betreff: SPAM Re: AW: SPAM Adding specific jar to classpath


Hi,

I would like to add it to the javac classpath...

But - without touching the ant directories, just using the ant commands, is it 
possible?

Eyal


Knuplesch, Juergen wrote:
> 
> Hello
> 
> What do you want to do with this jar?
> Add it to Ant or use it to javac sth. Or else?
> 
> To integrate a jar on the classpath of Ant it is enough to put the jar 
> in the lib dir of Ant.
> 
> 
> Greetings
> -- 
> Jürgen Knuplesch
> -Ursprüngliche Nachricht-
> Von: eyalg1972 [mailto:eyal_go...@bmc.com]
> Gesendet: Montag, 23. März 2009 23:14
> An: user@ant.apache.org
> Betreff: SPAM Adding specific jar to classpath
> 
> 
> Hi,
> 
> Does anyone knows how to add a specific jar to the classpath?
> 
> I know that there is a property- additional.classpath, but I don't 
> know how to use it...
> 
> Eyal
> --
> View this message in context:
> http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p2267
> 0440.html Sent from the Ant - Users mailing list archive at 
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p22675295.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ****SPAM**** Re: AW: ****SPAM**** Re: AW: ****SPAM**** Adding specific jar to classpath

2009-03-24 Thread Knuplesch, Juergen

This is possible of course!
Just this way e.g.:


  
  



mailto:eyal_go...@bmc.com] 
Gesendet: Dienstag, 24. März 2009 08:43
An: user@ant.apache.org
Betreff: SPAM Re: AW: SPAM Re: AW: SPAM Adding specific 
jar to classpath


Hi,

The problem is that I want to add to the classpath it a jar, not replace it...

Eyal


Knuplesch, Juergen wrote:
> 
> Hi,
> 
> 
> Of course.
> The javac task has a nested classspath element and classpath attribute 
> and you can add a classpath reference...
> Read the Ant doku about javac to learn how to do it:
> http://ant.apache.org/manual/
> 
> 
>  Greetings
> 
> 
> -- 
> Jürgen Knuplesch  
> 
> -Ursprüngliche Nachricht-
> Von: eyalg1972 [mailto:eyal_go...@bmc.com]
> Gesendet: Dienstag, 24. März 2009 08:26
> An: user@ant.apache.org
> Betreff: SPAM Re: AW: SPAM Adding specific jar to 
> classpath
> 
> 
> Hi,
> 
> I would like to add it to the javac classpath...
> 
> But - without touching the ant directories, just using the ant 
> commands, is it possible?
> 
> Eyal
> 
> 
> Knuplesch, Juergen wrote:
>> 
>> Hello
>> 
>> What do you want to do with this jar?
>> Add it to Ant or use it to javac sth. Or else?
>> 
>> To integrate a jar on the classpath of Ant it is enough to put the 
>> jar in the lib dir of Ant.
>> 
>> 
>> Greetings
>> -- 
>> Jürgen Knuplesch
>> -Ursprüngliche Nachricht-
>> Von: eyalg1972 [mailto:eyal_go...@bmc.com]
>> Gesendet: Montag, 23. März 2009 23:14
>> An: user@ant.apache.org
>> Betreff: SPAM Adding specific jar to classpath
>> 
>> 
>> Hi,
>> 
>> Does anyone knows how to add a specific jar to the classpath?
>> 
>> I know that there is a property- additional.classpath, but I don't 
>> know how to use it...
>> 
>> Eyal
>> --
>> View this message in context:
>> http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p226
>> 7 0440.html Sent from the Ant - Users mailing list archive at 
>> Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For 
>> additional commands, e-mail: user-h...@ant.apache.org
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For 
>> additional commands, e-mail: user-h...@ant.apache.org
>> 
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p2267
> 5295.html Sent from the Ant - Users mailing list archive at 
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p22675450.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Xslt troubles

2009-03-25 Thread Knuplesch, Juergen
Hello,

I am using Saxon to run a special XSLT.
This XSLT has run well using saxon9.jar.
Now it had to be changed and now I get the following error:

 [xslt] Processing D:\Temp\xsltPRL\install.dsf to 
D:\Temp\xsltPRL\Ergebnis.html
 [xslt] Loading stylesheet 
D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl
 [xslt] D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl:185:61: 
Fatal Error! Attribute @href is not allowed on element 
 [xslt] D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl:185:61: 
Fatal Error! Attribute @method is not allowed on element 
 [xslt] Failed to process D:\Temp\xsltPRL\install.dsf

The XSLT developer gave me the saxon.jar, he used to test his XSLT.
Here I get this error:
 [xslt] Processing D:\Temp\xsltPRL\install.dsf to 
D:\Temp\xsltPRL\Ergebnis.html
 [xslt] Loading stylesheet 
D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl
 [xslt] : Warning! Failure reading D:\Temp\xsltPRL\install.dsf Cause: 
java.io.EOFException: no more input
 [xslt] : Warning! Failure reading D:\Temp\xsltPRL\util.dsf Cause: 
java.io.EOFException: no more input

Who has an idea, what to do?

Greetings

-- 
Jürgen Knuplesch 

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Xslt troubles

2009-03-25 Thread Knuplesch, Juergen
I run it inside Ant using the xslt task including the saxon9.jar and also the 
saxon.jar of my colleague (Version 6?) 
My colleague run it in his environment.

But I found a solution:

I changed
   
to
   

And now it works with saxon9.

I dont know why
Maybe saxon9 is xslt 2.0 and saxon 6 is xslt 1.1...

-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: Stefan Krause [mailto:stefan.kra...@editura.de] 
Gesendet: Mittwoch, 25. März 2009 10:39
An: Ant Users List
Betreff: Re: Xslt troubles

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It looks to me more like a bug in the stylesheet than like an ant issue. Have 
you tried to run the stylesheet in a debugger or from the command line?

Stefan Krause

Knuplesch, Juergen schrieb:
> Hello,
> 
> I am using Saxon to run a special XSLT.
> This XSLT has run well using saxon9.jar.
> Now it had to be changed and now I get the following error:
> 
>  [xslt] Processing D:\Temp\xsltPRL\install.dsf to 
> D:\Temp\xsltPRL\Ergebnis.html
>  [xslt] Loading stylesheet 
> D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl
>  [xslt] D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl:185:61: 
> Fatal Error! Attribute @href is not allowed on element 
>  [xslt] D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl:185:61: 
> Fatal Error! Attribute @method is not allowed on element 
>  [xslt] Failed to process D:\Temp\xsltPRL\install.dsf
> 
> The XSLT developer gave me the saxon.jar, he used to test his XSLT.
> Here I get this error:
>  [xslt] Processing D:\Temp\xsltPRL\install.dsf to 
> D:\Temp\xsltPRL\Ergebnis.html
>  [xslt] Loading stylesheet 
> D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl
>  [xslt] : Warning! Failure reading D:\Temp\xsltPRL\install.dsf Cause: 
> java.io.EOFException: no more input
>  [xslt] : Warning! Failure reading D:\Temp\xsltPRL\util.dsf Cause: 
> java.io.EOFException: no more input
> 
> Who has an idea, what to do?
> 
> Greetings
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJyfvO6m+l2LO+BGwRAheYAJ9tf40dpl9Pg8ACveBf5fTbu7EJ0QCg84pn
0oy/l6DUBRy3GZtBJlseDHo=
=Qcg+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ****SPAM**** Class-Path error in Ant Script

2009-03-30 Thread Knuplesch, Juergen
You need log4j.jar in the compile-classpath 


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: NR031 [mailto:nataraja...@cognizant.com] 
Gesendet: Montag, 30. März 2009 12:02
An: user@ant.apache.org
Betreff: SPAM Class-Path error in Ant Script


Hi,


   I am writing my Ant build script according to the tutorial given 
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html here . I have 
downloaded the Log4j from the site 
http://www.apache.org/dist/logging/log4j/1.2.14/logging-log4j-1.2.14.zip. I 
have copied the JAR file to my local directory 
(D:\178010\AntScripts\Projects\lib).

  I have created a java file in the path 
D:\178010\AntScripts\Projects\src\cts\HelloWorld.java

package abc;
import org.apache.log4j.Logger;
 import org.apache.log4j.BasicConfigurator;
public class HelloWorld
 {
 static Logger logger = Logger.getLogger(HelloWorld.class);
public static void main(String[] args)
{
BasicConfigurator.configure();
 logger.info("Hello World"); // the old SysO-statement  }  }

and my build file is like this :

build.xml:






















   
 









when I run the target "run" I am getting :

[javac] D:\178010\AntScripts\Projects\src\cts\HelloWorld.java:13:
package or
g.apache.log4j does not exist
[javac] import org.apache.log4j.Logger;
[javac]^
[javac] D:\178010\AntScripts\Projects\src\cts\HelloWorld.java:14:
package or
g.apache.log4j does not exist
[javac]  import org.apache.log4j.BasicConfigurator;
[javac] ^
[javac] D:\178010\AntScripts\Projects\src\cts\HelloWorld.java:17: cannot 
fin d symbol
[javac] symbol  : class Logger
[javac] location: class cts.HelloWorld
[javac]  static Logger logger = Logger.getLogger(HelloWorld.class);
[javac] ^
[javac] D:\178010\AntScripts\Projects\src\cts\HelloWorld.java:17: cannot 
fin d symbol
[javac] symbol  : variable Logger
[javac] location: class cts.HelloWorld
[javac]  static Logger logger = Logger.getLogger(HelloWorld.class);
[javac] ^
[javac] D:\178010\AntScripts\Projects\src\cts\HelloWorld.java:20: cannot 
fin d symbol
[javac] symbol  : variable BasicConfigurator
[javac] location: class cts.HelloWorld
[javac] BasicConfigurator.configure();
[javac] ^
[javac] 5 errors

BUILD FAILED
D:\178010\AntScripts\Projects\build.xml:17: Compile failed; see the compiler 
err or output for details.

Total time: 1 second

What is wrong in the above code?


Thanks in advance,

--
View this message in context: 
http://www.nabble.com/Class-Path-error-in-Ant-Script-tp22779845p22779845.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: How to get substring of a property

2009-03-31 Thread Knuplesch, Juergen
I use propertyregex from antcontrib:

  
  Property vm.propertyname=${vm.propertyname} 


-- 
Jürgen Knuplesch 
-Ursprüngliche Nachricht-
Von: Document [mailto:ddocum...@gmail.com] 
Gesendet: Dienstag, 31. März 2009 00:46
An: user@ant.apache.org
Betreff: How to get substring of a property

Hi,
How do I get a substring of a property? Lets say I have a property whose value 
is "some.value". I want only the characters before the dot i.e.
"some". Any pointers? Please reply to me along with the 
u...@ant.apache.orgemail id

Thanks
P

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: jar task: update and service

2009-04-03 Thread Knuplesch, Juergen
 Please post an example of what you do

-- 
Jürgen Knuplesch   
-Ursprüngliche Nachricht-
Von: Kúti Zsolt [mailto:kuti.zs...@prolan.hu] 
Gesendet: Freitag, 3. April 2009 15:18
An: user@ant.apache.org
Betreff: jar task: update and service

Hi,

Accomplishing a jar task, I want to update my jar with a service element. 
Service entry does appear on first creation of the jar, but update attribute of 
the jar task does not seem to work.

Can anybody confirm this?

Is it a feature or a bug?

Thanks!

Zsolt

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Getting substring in ANT

2009-04-06 Thread Knuplesch, Juergen
As I wrote last week in a different context:

I use propertyregex from antcontrib:

  
  Property vm.propertyname=${vm.propertyname} 


--
Jürgen Knuplesch 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Pankaj Arora01 [mailto:pankaj_aror...@infosys.com] 
Gesendet: Montag, 6. April 2009 12:17
An: Ant Users List
Betreff: Getting substring in ANT

HI All,



I have following directory structure:



C:\abc\deploy\oracle\NAAM09102NNAQAE\NAAM09102NNAQAE_core01

C:\abc\deploy\oracle\NAAM09102NNAQBX\NAAM09102NNAQBX_ext_point_address01

C:\abc\deploy\oracle\ NAAM09102NNAQCF\NAAM09102NNAQCF_ext_sdo01



I have a variable x that contains following value:

C:\abc\deploy\oracle



Now I need to iterate through above directory and for each of the above 
directories, I need two values in the same loop:



1) C:\abc\deploy\oracle\NAAM09102NNAQAE\NAAM09102NNAQAE_core01

2) NAAM09102NNAQAE_core01



I am able to retrieve the 1) but not the second one. I need something like 
substring...



Please help...





















 CAUTION - Disclaimer * This e-mail contains 
PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the 
addressee(s). If you are not the intended recipient, please notify the sender 
by e-mail and delete the original message. Further, you are not to copy, 
disclose, or distribute this e-mail or its contents to any other person and any 
such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment. 
Infosys reserves the right to monitor and review the content of all messages 
sent to or from this e-mail address. Messages sent to or from this e-mail 
address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Strange JUNIT Error inside Ant

2009-05-05 Thread Knuplesch, Juergen
Hello,

We run a bunch of Junit Tests using ANT.

A special test runs fine, when started separetly (using ANT) or is run in 
Eclipse.

But, when we start all Tests the following error occurs:

[junit] Testsuite: functional.processlogic.SerialLetterTest
[junit] Test functional.processlogic.SerialLetterTest FAILED (crashed)

Also I get this
ERROR Forked Java VM exited abnormally. Please note the time in the report does 
not reflect the time until the VM exit.junit.framework.AssertionFailedError: 
Forked Java VM exited abnormally. Please note the time in the report does not 
reflect the time until the VM exit.
at 
net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
at net.sf.antcontrib.logic.AntCallBack.execute(AntCallBack.java:54)
at 
net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)

This looks not like a memory problem. ANT is going on with the next test and 
finishes successfull.

What could be happened? Any ideas?

Greetings

Jürgen

-- 
Jürgen Knuplesch

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Pack200 and Ant jartask

2009-05-06 Thread Knuplesch, Juergen
Hello,

I want to pack an applet with pack200 to reduce the size of the Applet.
I downloaded a pack200 ANT task

I go with my AntSkript through the strange process of building such a jarfile:
1.Building the unsigned jarfile using the jartask of ANT
2.repack it with pack200
3.sign the jar
4.pack it with pack200 to .pack.gz

If I verify the signature after step3, everything is fine.
If I unpack the gz and verify then, I get an error:

jarsigner: java.lang.SecurityException: SHA1 digest error for de/... .class

If I unpack the Applet and repack it without using ANT and then do the steps 
manually, the applet verifys ok!!

Is there an incompabitility between pack200 and ANT jartask?
Or do I need to set a certain parameter?

Any ideas?

Greetings

Jürgen


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Generate XML

2009-05-11 Thread Knuplesch, Juergen
Why not use XSLT to create XML out of XML? 

Or you put some placeholders into your XML and use the replace task...



-- 
Jürgen Knuplesch 
-Ursprüngliche Nachricht-
Von: raghu guru [mailto:raghure...@gmail.com] 
Gesendet: Montag, 11. Mai 2009 20:30
An: user@ant.apache.org
Betreff: Generate XML

Hi All,

Is there any task available to generate / edit the xml file.

This is what i'mt rying to do, while building application i want to put some 
information on the fly like, time,date,source code baseline being built, 
deploytime into some xml document. this i want to keep on editing for the 
lifecycle of that release.

Any ideas?

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Sending small mail when build is finished

2009-05-18 Thread Knuplesch, Juergen
Hello,

My challenge is:
I dont want to use the maillogger anymore, because our logs have become very 
large.
So I started to use -logfile and store it with my Buildresults.

But on the other hand: I want to send a small mail, that tells me whether the 
build was ok or not.
How can I do this?

Greetings

Jürgen

-- 
Jürgen Knuplesch   

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Applying Ant Source to Eclipse project

2009-05-19 Thread Knuplesch, Juergen
Hello,

I want to install the Ant Source into a Eclipse project.

I downloaded the source, but it does not easily fit into the Eclipse 
environment.
Is there an online help how to do this?
Does anyone have some hints, so that the adaption will be made easier?

Greetings

Juergen

-- 
Jürgen Knuplesch

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Final Target

2009-05-25 Thread Knuplesch, Juergen
Hello,

I just implemented a logger that runs a final Target.
In this target I save the logfile to a buildresult location in our network.

1.Is there an other way to do this (The logger knows, when the build is 
finished, and so he can run the final target)
2.If no, is this an interesting feature for future Ant distributions?

Greetings Jürgen

-- 
Jürgen Knuplesch

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ant-contrib with Java 1.4?

2009-05-26 Thread Knuplesch, Juergen
Hello,

This doesnt look like a Java problem.

This seems to be a classpath problem.
The error says, that the whole antcontrib.jar could not be found.
Antlib.xml is inside the antcontrib.jar and defines the tasks of antcontrib.

The antcontrib.jar is probably not on the classpath of the Ant you are using in 
this case.

Is antcontrib in the lib-dir of the Ant you are using?

Greetings

Jürgen
 


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: David Raich [mailto:d.ra...@att.net] 
Gesendet: Mittwoch, 27. Mai 2009 02:51
An: Ant Users List
Betreff: ant-contrib with Java 1.4?

Thanks for your suggestion to use ant-contrib and  for the logging I 
needed over a file list.

It is working on most of my platforms that have JDKs of 1.4.2 and above.  But 
it fails on one that has only 1.4.  I've found no documentation listing this as 
a specific limitation, but that seems to be the only environmental difference 
between an HPUX where it works and one where it doesn't.

The error is:

   [taskdef] Could not load definitions from resource 
net/sf/antcontrib/antlib.xml. It could not be found.

Is that a known limitation?  Or can anyone suggest another way to get around 
this error?  The failure to accept  basically kills my ability to use 
any of the tasks from ant-contrib.  (I'm trying to find a newer Java to 
swinstall on this machine, but keep running into dependency problems.)


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: clone fake environment variables as real ones for exec

2009-05-28 Thread Knuplesch, Juergen
Hello, 

One way this could work is by wrting your own exec2 task by using the  
source and add an argument of your choice that does the trick (an extension of 
the env argument).

Probably a script (python, etc.) language is also able to set environment 
variables.
So you could use the script task.

Greetings 

-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] 
Gesendet: Donnerstag, 28. Mai 2009 08:28
An: 'Ant Users List'
Betreff: clone fake environment variables as real ones for exec

I load in my environment variables with:



I use ant properties throughout my script with the env. prefix so that end 
users can override them with real environment variables, if they wish.  If 
those env. prefixed ant properties are not initialized from the real 
environment variables, I default them inside ant.  This results in fake 
environment variables that are really just ant properties with an env. prefix.

My problem is if I call an exec task, I would like to pass in all the fake env. 
variables into that exec task.  Any real environment variables get 
automatically passed down or inherited by the exec task, so those work fine.  
However, the fake env. prefixed ant properties that were not initialized from 
the real environment and defaulted within ant are not passed down because they 
are only ant properties.  I would rather not have to specify lots of  tags 
within my exec call just to translate my fake env. prefixed ant properties into 
real environment variables for the duration of the exec call.  Something like:




 

Debugging my AntTasks

2009-05-28 Thread Knuplesch, Juergen
Hello,

My selfwritten Ant Task is running into an exception.

BUILD FAILED
build_ant.xml:2315: The following error occurred while executing this line:
build_ant.xml:5428: java.lang.IllegalArgumentException: interface 
com.intland.codebeamer.remoting.RemoteApi is not visible from class loader

I would like to see the stacktrace. 
How can I make stacktraces visible?

Greetings Juergen

-- 
Jürgen Knuplesch 

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Taskdef classpath does nor work

2009-05-28 Thread Knuplesch, Juergen
Hello,

I do a taskdef with 1.7.1 like:


   
 

When I display the classpath referenced in java.classpathid I see a certain jar.
When I run the task it fails, because it can not find a class that is based in 
that certain jar.

When I add the jar in the classpath of Ant it works.

This is strange, because lots of other classes and jars are found using this 
task. (The task starts does a lot and the final step fails)

Has Ant a problem with long classpaths or does it support only one classpath 
for all taskdefs (doesnt make sense to me)

I can not find the reason. Please help!

Greetings Jürgen


-- 
Jürgen Knuplesch  

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Taskdef classpath does nor work

2009-05-28 Thread Knuplesch, Juergen
Hello Scott,

No, Because, when I add the jar to the Ant classpath (now ist on the classpath 
twice), everything works!

Probably my classpath is too long.

Greetings Juergen 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Scot P. Floess [mailto:sflo...@nc.rr.com] 
Gesendet: Donnerstag, 28. Mai 2009 17:25
An: Ant Users List
Betreff: Re: Taskdef classpath does nor work


Is there some supplementary class that that class requires that isn't there 
when you use it as you have it defined?

On Thu, 28 May 2009, Knuplesch, Juergen wrote:

> Hello,
>
> I do a taskdef with 1.7.1 like:
>
> classname="myJavaClass">
>
>
> When I display the classpath referenced in java.classpathid I see a certain 
> jar.
> When I run the task it fails, because it can not find a class that is based 
> in that certain jar.
>
> When I add the jar in the classpath of Ant it works.
>
> This is strange, because lots of other classes and jars are found 
> using this task. (The task starts does a lot and the final step fails)
>
> Has Ant a problem with long classpaths or does it support only one 
> classpath for all taskdefs (doesnt make sense to me)
>
> I can not find the reason. Please help!
>
> Greetings Jürgen
>
>
> --
> Jürgen Knuplesch
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros  http://sourceforge.net/projects/keros

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Taskdef classpath does not work - partII

2009-05-28 Thread Knuplesch, Juergen
Hello,

I have some additional information:

My classpath is very long.
When I change the classpath order an exception happen somewhere else! 

Is there a restriction of the length of a classpath that will be handled using 
taskdef?

Greetings

Jürgen


-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] 
Gesendet: Donnerstag, 28. Mai 2009 16:50
An: Ant Users List
Betreff: Taskdef classpath does nor work

Hello,

I do a taskdef with 1.7.1 like:


 

When I display the classpath referenced in java.classpathid I see a certain jar.
When I run the task it fails, because it can not find a class that is based in 
that certain jar.

When I add the jar in the classpath of Ant it works.

This is strange, because lots of other classes and jars are found using this 
task. (The task starts does a lot and the final step fails)

Has Ant a problem with long classpaths or does it support only one classpath 
for all taskdefs (doesnt make sense to me)

I can not find the reason. Please help!

Greetings Jürgen


-- 
Jürgen Knuplesch  

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: AW: Taskdef classpath does not work - partII

2009-05-28 Thread Knuplesch, Juergen
Hello,

I use getEclipseClasspath to realize the classpath.
If I run the class withot Ant inside Eclipse it works with the classpath I 
defined in Eclipse.
It also works if I add the jar to the Ant classpath.
It does not work if I only use the Eclipse classpath for the taskdef together 
with Ant.

The exception is:
BUILD FAILED
D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant.xml:5794: 
java.lang.IllegalArgumentException: interface 
com.intland.codebeamer.remoting.RemoteApi is not visible from class loader 


-- 
Jürgen Knuplesch   
-Ursprüngliche Nachricht-
Von: Scot P. Floess [mailto:sflo...@nc.rr.com] 
Gesendet: Donnerstag, 28. Mai 2009 18:40
An: Ant Users List
Betreff: Re: AW: Taskdef classpath does not work - partII


So, how do you construct your class path?

Also, what is the exception?

On Thu, 28 May 2009, Knuplesch, Juergen wrote:

> Hello,
>
> I have some additional information:
>
> My classpath is very long.
> When I change the classpath order an exception happen somewhere else!
>
> Is there a restriction of the length of a classpath that will be handled 
> using taskdef?
>
> Greetings
>
> Jürgen
>
>
> --
> Jürgen Knuplesch
>
> -----Ursprüngliche Nachricht-
> Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
> Gesendet: Donnerstag, 28. Mai 2009 16:50
> An: Ant Users List
> Betreff: Taskdef classpath does nor work
>
> Hello,
>
> I do a taskdef with 1.7.1 like:
>
> classname="myJavaClass">
> 
>
> When I display the classpath referenced in java.classpathid I see a certain 
> jar.
> When I run the task it fails, because it can not find a class that is based 
> in that certain jar.
>
> When I add the jar in the classpath of Ant it works.
>
> This is strange, because lots of other classes and jars are found 
> using this task. (The task starts does a lot and the final step fails)
>
> Has Ant a problem with long classpaths or does it support only one 
> classpath for all taskdefs (doesnt make sense to me)
>
> I can not find the reason. Please help!
>
> Greetings Jürgen
>
>
> --
> Jürgen Knuplesch
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros  http://sourceforge.net/projects/keros

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Taskdef classpath still does not work - partIII

2009-05-29 Thread Knuplesch, Juergen
Hello,

My taskdef classpath still does not work (it sometimes worked).

I do the following

 
 

   
 
   
 

In the end Ant tells me:
BUILD FAILED
D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant2.xml:376: 
java.lang.IllegalArgumentException: interface 
com.intland.codebeamer.remoting.RemoteApi is not visible from class loader

Total time: 14 seconds

It looks like sth. (cb-api.jar) Missing on the classpath.

But it is defintely in buildjava.classpathid.
(Log:  [echo] |   |-- 
D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar )
So the classloader of Ant can not find cb-api.jar although ist on the taskdef 
classpath.

If I add this jar 
(D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar) to Ant it 
works.

This is crazy. Im working now a whole day on this topic and can not find a 
reason.

Has anyone an idea, whats going on or how I can debug deeper what happens?

Greetings

Jürgen

-- 
Jürgen Knuplesch 
-Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] 
Gesendet: Donnerstag, 28. Mai 2009 18:54
An: Ant Users List
Betreff: AW: AW: Taskdef classpath does not work - partII

Hello,

I use getEclipseClasspath to realize the classpath.
If I run the class withot Ant inside Eclipse it works with the classpath I 
defined in Eclipse.
It also works if I add the jar to the Ant classpath.
It does not work if I only use the Eclipse classpath for the taskdef together 
with Ant.

The exception is:
BUILD FAILED
D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant.xml:5794: 
java.lang.IllegalArgumentException: interface 
com.intland.codebeamer.remoting.RemoteApi is not visible from class loader 


-- 
Jürgen Knuplesch   
-Ursprüngliche Nachricht-
Von: Scot P. Floess [mailto:sflo...@nc.rr.com]
Gesendet: Donnerstag, 28. Mai 2009 18:40
An: Ant Users List
Betreff: Re: AW: Taskdef classpath does not work - partII


So, how do you construct your class path?

Also, what is the exception?

On Thu, 28 May 2009, Knuplesch, Juergen wrote:

> Hello,
>
> I have some additional information:
>
> My classpath is very long.
> When I change the classpath order an exception happen somewhere else!
>
> Is there a restriction of the length of a classpath that will be handled 
> using taskdef?
>
> Greetings
>
> Jürgen
>
>
> --
> Jürgen Knuplesch
>
> -----Ursprüngliche Nachricht-
> Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
> Gesendet: Donnerstag, 28. Mai 2009 16:50
> An: Ant Users List
> Betreff: Taskdef classpath does nor work
>
> Hello,
>
> I do a taskdef with 1.7.1 like:
>
> classname="myJavaClass">
> 
>
> When I display the classpath referenced in java.classpathid I see a certain 
> jar.
> When I run the task it fails, because it can not find a class that is based 
> in that certain jar.
>
> When I add the jar in the classpath of Ant it works.
>
> This is strange, because lots of other classes and jars are found 
> using this task. (The task starts does a lot and the final step fails)
>
> Has Ant a problem with long classpaths or does it support only one 
> classpath for all taskdefs (doesnt make sense to me)
>
> I can not find the reason. Please help!
>
> Greetings Jürgen
>
>
> --
> Jürgen Knuplesch
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros  http://sourceforge.net/projects/keros

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Taskdef classpath still does not work - partIII

2009-05-29 Thread Knuplesch, Juergen
Hello,

Thanks for the suggestion, but sadly it did not work.
I created now a atcktrace:

java.lang.IllegalArgumentException: interface 
com.intland.codebeamer.remoting.RemoteApi is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at 
com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:393)
at 
com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:365)
at 
com.intland.codebeamer.remoting.RemoteApiFactory.create(RemoteApiFactory.java:69)
at 
com.intland.codebeamer.remoting.RemoteApiFactory.connect(RemoteApiFactory.java:86)
at de.icongmbh.codebeamer.CBUtilities.connect2CB(CBUtilities.java:55)
at de.icongmbh.codebeamer.CBUtilities.(CBUtilities.java:42)
at 
de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.upload2CB(UploadInstallDB2CB.java:125)
at 
de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.updateInstallDSFinCB(UploadInstallDB2CB.java:224)
at 
de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask.execute(DeployInstallDBAntTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) 


I still cant see, what the problem is.

Greetings Jürgen

-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:mgai...@hotmail.com] 
Gesendet: Freitag, 29. Mai 2009 15:23
An: Ant Users List
Betreff: RE: Taskdef classpath still does not work - partIII


können Sie versuchen:


  


   Subject: Taskdef classpath still does not work - partIII
> Date: Fri, 29 May 2009 14:46:39 +0200
> From: juergen.knuple...@icongmbh.de
> To: user@ant.apache.org
> 
> Hello,
> 
> My taskdef classpath still does not work (it sometimes worked).
> 
> I do the following
> 
>   location="${cvs.exportboxbase}"/>
> workspace="${taskdef.compareCvs2DopeDB.basepath}"
>   projectname="BuildJava" />
> 
>
> 
> classname="de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask"
>   onerror="report"
>  loaderref="buildjava.path.loader" >
>
>  
> 
> In the end Ant tells me:
> BUILD FAILED
> D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant2.xml:376: 
> java.lang.IllegalArgumentException: interface 
> com.intland.codebeamer.remoting.RemoteApi is not visible from class 
> loader
> 
> Total time: 14 seconds
> 
> It looks like sth. (cb-api.jar) Missing on the classpath.
> 
> But it is defintely in buildjava.classpathid.
> (Log:  [echo] |   |-- 
> D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar )
> So the classloader of Ant can not find cb-api.jar although ist on the taskdef 
> classpath.
> 
> If I add this jar 
> (D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar) to Ant it 
> works.
> 
> This is crazy. Im working now a whole day on this topic and can not find a 
> reason.
> 
> Has anyone an idea, whats going on or how I can debug deeper what happens?
> 
> Greetings
> 
> Jürgen
> 
> --
> Jürgen Knuplesch
> -Ursprüngliche Nachricht-
> Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
> Gesendet: Donnerstag, 28. Mai 2009 18:54
> An: Ant Users List
> Betreff: AW: AW: Taskdef classpath does not work - partII
> 
> Hello,
> 
> I use getEclipseClasspath to realize the classpath.
> If I run the class withot Ant inside Eclipse it works with the classpath I 
> defined in Eclipse.
> It also works if I add the j

Taskdef classloader issue

2009-05-29 Thread Knuplesch, Juergen
Hello,

As I inspected the stacktrace, I found out that this exception could happen, 
when you access a class with a classloader, that did not load the class.

So the taskdef loads the file. Is taskdef using a different classloader than 
the classloade, who runs my task?
How can I use the same classloader for both?

Greetings Juergen


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] 
Gesendet: Freitag, 29. Mai 2009 16:02
An: Ant Users List
Betreff: AW: Taskdef classpath still does not work - partIII

Hello,

Thanks for the suggestion, but sadly it did not work.
I created now a atcktrace:

java.lang.IllegalArgumentException: interface 
com.intland.codebeamer.remoting.RemoteApi is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at 
com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:393)
at 
com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:365)
at 
com.intland.codebeamer.remoting.RemoteApiFactory.create(RemoteApiFactory.java:69)
at 
com.intland.codebeamer.remoting.RemoteApiFactory.connect(RemoteApiFactory.java:86)
at de.icongmbh.codebeamer.CBUtilities.connect2CB(CBUtilities.java:55)
at de.icongmbh.codebeamer.CBUtilities.(CBUtilities.java:42)
at 
de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.upload2CB(UploadInstallDB2CB.java:125)
at 
de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.updateInstallDSFinCB(UploadInstallDB2CB.java:224)
at 
de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask.execute(DeployInstallDBAntTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) 


I still cant see, what the problem is.

Greetings Jürgen

--
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:mgai...@hotmail.com]
Gesendet: Freitag, 29. Mai 2009 15:23
An: Ant Users List
Betreff: RE: Taskdef classpath still does not work - partIII


können Sie versuchen:


  


   Subject: Taskdef classpath still does not work - partIII
> Date: Fri, 29 May 2009 14:46:39 +0200
> From: juergen.knuple...@icongmbh.de
> To: user@ant.apache.org
> 
> Hello,
> 
> My taskdef classpath still does not work (it sometimes worked).
> 
> I do the following
> 
>   location="${cvs.exportboxbase}"/>
> workspace="${taskdef.compareCvs2DopeDB.basepath}"
>   projectname="BuildJava" />
> 
>
> 
> classname="de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask"
>   onerror="report"
>  loaderref="buildjava.path.loader" >
>
>  
> 
> In the end Ant tells me:
> BUILD FAILED
> D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant2.xml:376: 
> java.lang.IllegalArgumentException: interface 
> com.intland.codebeamer.remoting.RemoteApi is not visible from class 
> loader
> 
> Total time: 14 seconds
> 
> It looks like sth. (cb-api.jar) Missing on the classpath.
> 
> But it is defintely in buildjava.classpathid.
> (Log:  [echo] |   |-- 
> D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar )
> So the classloader of Ant can not find cb-api.jar although ist on the taskdef 
> classpath.
> 
> If I ad

AW: Taskdef classloader issue

2009-06-02 Thread Knuplesch, Juergen
__
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






> Subject: Taskdef classloader issue
> Date: Fri, 29 May 2009 16:40:35 +0200
> From: juergen.knuple...@icongmbh.de
> To: user@ant.apache.org
> 
> Hello,
> 
> As I inspected the stacktrace, I found out that this exception could happen, 
> when you access a class with a classloader, that did not load the class.
> 
> So the taskdef loads the file. Is taskdef using a different classloader than 
> the classloade, who runs my task?
> How can I use the same classloader for both?
> 
> Greetings Juergen
> 
> 
> -- 
> Jürgen Knupleschwww.icongmbh.de
> icon Systemhaus GmbHTel. +49 711 806098-275
> Sophienstraße 40
> D-70178 Stuttgart   Fax. +49 711 806098-299
> 
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
> -Ursprüngliche Nachricht-
> Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
> Gesendet: Freitag, 29. Mai 2009 16:02
> An: Ant Users List
> Betreff: AW: Taskdef classpath still does not work - partIII
> 
> Hello,
> 
> Thanks for the suggestion, but sadly it did not work.
> I created now a atcktrace:
> 
> java.lang.IllegalArgumentException: interface 
> com.intland.codebeamer.remoting.RemoteApi is not visible from class loader
>   at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
>   at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
>   at 
> com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:393)
>   at 
> com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:365)
>   at 
> com.intland.codebeamer.remoting.RemoteApiFactory.create(RemoteApiFactory.java:69)
>   at 
> com.intland.codebeamer.remoting.RemoteApiFactory.connect(RemoteApiFactory.java:86)
>   at de.icongmbh.codebeamer.CBUtilities.connect2CB(CBUtilities.java:55)
>   at de.icongmbh.codebeamer.CBUtilities.(CBUtilities.java:42)
>   at 
> de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.upload2CB(UploadInstallDB2CB.java:125)
>   at 
> de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.updateInstallDSFinCB(UploadInstallDB2CB.java:224)
>   at 
> de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask.execute(DeployInstallDBAntTask.java:41)
>   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>   at org.apache.tools.ant.Task.perform(Task.java:348)
>   at org.apache.tools.ant.Target.execute(Target.java:357)
>   at org.apache.tools.ant.Target.performTasks(Target.java:385)
>   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>   at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>   at org.apache.tools.ant.Main.runBuild(Main.java:758)
>   at org.apache.tools.ant.Main.startAnt(Main.java:217)
>   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> 
> 
> I still cant see, what the problem is.
> 
> Greetings Jürgen
> 
> --
> Jürgen Knuplesch
> -Ursprüngliche Nachricht-
> Von: Martin Gainty [mailto:mgai...@hotmail.com]
> Gesendet: Freitag, 29. Mai 2009 15:23
> An: Ant Users List
> Betreff: RE: Taskdef classpath still does not work - partIII
> 
> 
> können Sie versuchen:
> 
> 
>includes="D:/nightlybuild/exportbaseHEAD/IconCodebeamerCVS/lib/*.jar"/>
> 
> 
>   
> classname="de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask"
>onerror="report"
>   loaderref="buildjava.path.loader" 
> Mit Freundliche Gruben
> Martin
> Vereinigte Staaten
> GMT+5 (diese Woche)
&

Delete file inside a warfile

2009-06-03 Thread Knuplesch, Juergen
Hello,

Is it possible to delete a single file inside a warfile in one step?

(I want to remove a certain library)

Greetings Jürgen

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Delete file inside a warfile

2009-06-03 Thread Knuplesch, Juergen
Hello,

Not really, because I already have a warfile  and want to throw out one jar.

I solved it now in two steps 
1.copying the warfile
2.war the new warfile out of the copy and exclude the specific jar, similar to 
what you mailed.

It would be nice just to delete sth. Out of a jar/war etc. without the need to 
copy the wars around.

Greetings Juergen


-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:mgai...@hotmail.com] 
Gesendet: Mittwoch, 3. Juni 2009 16:34
An: Ant Users List
Betreff: RE: Delete file inside a warfile


http://ant.apache.org/manual/CoreTasks/war.html



  


tut diese Antwort Ihre Frage?
Martin
__
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.





> Subject: Delete file inside a warfile
> Date: Wed, 3 Jun 2009 15:02:02 +0200
> From: juergen.knuple...@icongmbh.de
> To: user@ant.apache.org
> 
> Hello,
> 
> Is it possible to delete a single file inside a warfile in one step?
> 
> (I want to remove a certain library)
> 
> Greetings Jürgen
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
> 

_
Insert movie times and more without leaving Hotmail®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ant-contrib: ispropertytrue

2009-06-04 Thread Knuplesch, Juergen
Hello,

Just a guess: In the link you gave the code is:


Your code is: 


Is this a lowercase problem?

Greetings Juergen

-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: David Weintraub [mailto:qazw...@gmail.com] 
Gesendet: Mittwoch, 3. Juni 2009 19:46
An: Ant Users List
Betreff: Re: ant-contrib: ispropertytrue

I don't believe there's a IsPropertyTrue condition. I believe you might want to 
be using the  condition.

This should work:


<*istrue* property="BPELForceBuild"/>


 


On Wed, Jun 3, 2009 at 6:22 AM, Ken Turner  wrote:

>
> I'm using  Ant version 1.6.5, and ant-contrib-1.0b2.jar.
> I have a snippet of my build file which looks like this:
>
>
>
>
> />
>
>
>
> In my Windows environment (Win XP Pro SP3), this works fine, but I'm 
> attempting to transfer the script to a Linux Environment (Red Hat 
> 2.4.21-58.EL), and I get the following error:
>
>Class net.sf.antcontrib.logic.IfTask doesn't support the nested 
> "IsPropertyTrue" element
>
> To convince myself that the correct version of ant-contrib is being 
> picked up, I have in both environments hidden the 
> ant-contrib-1.0b2.jar by renaming it, and in both environments it then 
> fails, as would be expected, on the first  encountered.
>
> Does anybody have any ideas what the problem might be here?
> --
> View this message in context:
> http://www.nabble.com/ant-contrib%3A-ispropertytrue-tp23848954p2384895
> 4.html Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>


--
David Weintraub
qazw...@gmail.com

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Taskdef classloader issue: Solution found

2009-06-04 Thread Knuplesch, Juergen
Hello,

The real solution for my taskdef problem looks like:

David Wood writes about a similar problem and solved it by using:
>
>   // Get the task class loader we used to load this tag.
>   AntClassLoader taskloader = 
> (AntClassLoader)this.getClass().getClassLoader();
>
>   // Shove it into the Thread, replacing the thread's ClassLoader:
>   taskloader.setThreadContextLoader();
>
> Then you do what you have to do. When your done, I highly advise doing a:
>
>   // Reset the Thread's original ClassLoader.
>   taskloader.resetThreadContextLoader(); 


So for certain tasks it is necessary to use the original classloader, that 
loaded the task. 
The code above replaces the classloader and the problem is solved!

Greetings Juergen


-- 
Jürgen Knuplesch
-----Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] 
Gesendet: Dienstag, 2. Juni 2009 08:39
An: Ant Users List
Betreff: AW: Taskdef classloader issue

Hello Martin

Thanks for the deep insight and your help!
I finally gave up, and used the workaround to put this special jar on the 
classpath of ANT (instead of the classpath of taskdef).
This works, but I do not really understand why.

Maybe I will find out after Pentacoast (how do you spell this?), if the Spirit 
of Debugging comes over me.

Greetings Juergen
 


--
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:mgai...@hotmail.com]
Gesendet: Freitag, 29. Mai 2009 17:27
An: Ant Users List
Betreff: RE: Taskdef classloader issue


here is the testcase:

package org.apache.tools.ant;
public class AntClassLoaderTest extends BuildFileTest {

private Project p;

public AntClassLoaderTest(String name) {
super(name);
}

public void setUp() {
p = new Project();
p.init();
configureProject("src/etc/testcases/core/antclassloader.xml");
getProject().executeTarget("setup");
}

public void tearDown() {
getProject().executeTarget("cleanup");
}
//test inspired by bug report 37085
public void testJarWithManifestInDirWithSpace() {
String mainjarstring = getProject().getProperty("main.jar");
String extjarstring = getProject().getProperty("ext.jar");
Path myPath = new Path(getProject());
myPath.setLocation(new File(mainjarstring));
getProject().setUserProperty("build.sysclasspath","ignore");
AntClassLoader myLoader = getProject().createClassLoader(myPath);
String path = myLoader.getClasspath();
assertEquals(mainjarstring + File.pathSeparator + extjarstring, path);
}
public void testJarWithManifestInNonAsciiDir() {
String mainjarstring = getProject().getProperty("main.jar.nonascii");
String extjarstring = getProject().getProperty("ext.jar.nonascii");
Path myPath = new Path(getProject());
myPath.setLocation(new File(mainjarstring));
getProject().setUserProperty("build.sysclasspath","ignore");
AntClassLoader myLoader = getProject().createClassLoader(myPath);
String path = myLoader.getClasspath();
assertEquals(mainjarstring + File.pathSeparator + extjarstring, path);
}
public void testCleanup() throws BuildException {
Path path = new Path(p, ".");
AntClassLoader loader = p.createClassLoader(path);
try {
// we don't expect to find this
loader.findClass("fubar");
fail("Did not expect to find fubar class");
} catch (ClassNotFoundException e) {
// ignore expected
}

loader.cleanup();
try {
// we don't expect to find this
loader.findClass("fubar");
fail("Did not expect to find fubar class");
} catch (ClassNotFoundException e) {
// ignore expected
} catch (NullPointerException e) {
fail("loader should not fail even if cleaned up");
}

// tell the build it is finished
p.fireBuildFinished(null);
try {
// we don't expect to find this
loader.findClass("fubar");
fail("Did not expect to find fubar class");
} catch (ClassNotFoundException e) {
// ignore expected
} catch (NullPointerException e) {
fail("loader should not fail even if project finished");
}
}
}

getProject().setUserProperty("build.sysclasspath","ignore");

AntClassLoader myLoader = getProject().createClassLoader(myPath);
build.sysclasspath
The value of the build.sysclasspath property control how the system classpath, 
ie. the classpath in effect when Ant is run, affects the behaviour of 
classpath

AW: How to concat string in ant

2009-06-04 Thread Knuplesch, Juergen
Hello,

You use antcontrib, there you have the var type that will do the trick.
In the end you should move the result into a property.

Initialize it:

And in the loop:


And move it to property:


-- 
Jürgen Knuplesch

-Ursprüngliche Nachricht-
Von: Gao Lin [mailto:aoi...@gmail.com] 
Gesendet: Freitag, 5. Juni 2009 08:45
An: user@ant.apache.org
Betreff: How to concat string in ant

Hi:

  I want to concat some strings from a list to one string line.

like:








for example above, if the list of ${strs.list} is:  {a, b, c}, how can I get a 
string with value: string = "a b c" ?

do you guys know what is better way to implement this WITHOUT writing own Task?

--
Thanks and Best Regards

aoi...@gmail.com

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: Abort build with successful status

2009-06-15 Thread Knuplesch, Juergen
Hello,

I would use  from antcontrib to achieve this. 

Sth.like

  

  



-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] 
Gesendet: Montag, 15. Juni 2009 07:18
An: 'user@ant.apache.org'
Betreff: Abort build with successful status

Is there a way to end a build prematurely, successfully?  I can use , but 
then the return value of ant is a failure and it prints out BUILD FAILED, which 
will make the user think something bad happened.  That was not the case.  I 
want to stop a build in certain circumstances and have it be normal and 
successful.  How could I write my own task to do this?

---
Shawn Castrianni

--
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ****SPAM**** cannot find symbol

2009-06-15 Thread Knuplesch, Juergen
Obviously you dont have some necessary jar files on your compile classpath.
 package org.eclipse.swt.widgets

You probably have this files on your Eclipse classpath / buildpath.
You have to add allof them to your compile classpath (see reference of javac 
task)

If you use Eclipse: You could also use Ant4Eclipse to get the classpath that 
Eclipse is using.

Greetings Juergen

-- 
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Hungry Snail [mailto:centuri...@hotmail.com] 
Gesendet: Montag, 15. Juni 2009 13:45
An: user@ant.apache.org
Betreff: SPAM cannot find symbol


Hi People.

I am trying to compile some files with ant but am getting the following errors.

 [javac] D:\Stats\src\org\selectbf\gui\ConfigurationDialog.java:32: package 
org.eclipse.swt.widgets does not exist  [javac] import 
org.eclipse.swt.widgets.Text;
 [javac]^
 [javac] D:\Stats\src\org\selectbf\gui\ConfigurationDialog.java:50: package 
org.eclipse.swt.widgets does not exist  [javac] public class 
ConfigurationDialog extends org.eclipse.swt.widgets.Dialog
 [javac] ^
 [javac] D:\Stats\src\org\selectbf\gui\ConfigurationDialog.java:53: cannot find 
symbol  [javac] symbol  : class Shell  [javac] location: class 
org.selectbf.gui.ConfigurationDialog
 [javac] private Shell dialogShell;
 [javac] ^
 [javac] D:\Stats\src\org\selectbf\gui\ConfigurationDialog.java:54: cannot find 
symbol  [javac] symbol  : class TabItem  [javac] location: class 
org.selectbf.gui.ConfigurationDialog
 [javac] private TabItem generalTabItem;

In total there are 100 of these errors :-o.

As I have never used ant before, is there anything I can do to fix this?

Thanks in advance.
--
View this message in context: 
http://www.nabble.com/cannot-find-symbol-tp24033173p24033173.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: How to distinguish build/clean and build within ant task

2009-06-26 Thread Knuplesch, Juergen
 Hello Artur,

You can achieve this with properties:


       
            
                
            
            
            


In your different maintasks (or property file) you do
 or
 or

-- 

Greetings from good old Germany 

Jürgen 

-Ursprüngliche Nachricht-
Von: Artur Rataj [mailto:arturra...@gmail.com] 
Gesendet: Freitag, 26. Juni 2009 11:50
An: user@ant.apache.org
Betreff: How to distinguish build/clean and build within ant task

Hello, I have asked this question on netbeans-users, but got no answer.

I have a java task

       
            
                
            
            
            
            ...
        

I would like to include or exclude tags, depending on the main task.

In this task, I would like to include the option -t only for netbeans'
build task, and not for
netbean's clean/build task. If possible, how could I do it?

Best regards,
Artur

-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



AW: ****SPAM**** for task inside path task

2009-07-09 Thread Knuplesch, Juergen
 Hello,

Maybe ANT this way:

  
 
   


   
   
 
 
   

   
 
   

   



-- 
Jürgen Knuplesch  
-Ursprüngliche Nachricht-
Von: kleinfisch [mailto:kleinfi...@gmx.net] 
Gesendet: Donnerstag, 9. Juli 2009 09:44
An: user@ant.apache.org
Betreff: SPAM for task inside path task


example:
i have a property as following defined:
 the count of value is 
dynamic.
the question is: how can i define the refid inside path with for task:
- Test 1:

   
  
 
  
   

Result: failed, because "path" doesn't support the nested "for" element.

- Test 2:

   
  
 
  
   

Result: only last value of "reference" is defined always, because the recent 
value of "reference" is always replaced by the next value of "reference".

Has anybody else an idea, "path" task with a loop definition?
--
View this message in context: 
http://www.nabble.com/for-task-inside-path-task-tp24405629p24405629.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



  1   2   >