Re: How to reference elements in custom task

2011-03-14 Thread Jon Svede
Peter, Thanks for the clarification, I appreciate it! Sincerely, Jon From: Peter Reilly To: Ant Users List Sent: Mon, March 14, 2011 12:27:25 PM Subject: Re: How to reference elements in custom task There is nothing in ant that would do that (it was

Re: How to reference elements in custom task

2011-03-14 Thread Jon Svede
blem? It's entirely possible that what I want to do isn't feasible but that is what I am basically asking: can I do this as I've described or is there another, more preferable way to accomplish this? Sincerely, Jon From: wolfgang haefeling

How to reference elements in custom task

2011-03-14 Thread Jon Svede
ome docs on this? Thanks in advance, Jon

Ant 1.6 installation

2008-09-05 Thread Jon
] bin]$* Rgds, -- Jon Camilleri Mobile (MT): 00356 7982 7113 E-mail: [EMAIL PROTECTED] Please consider your environmental responsibility before printing this e-mail. I usually reply to e-mails within 2 business days. If it's urgent, give me a call.

Re: Question about debug output

2007-02-09 Thread Jon Rue
Thanks but I know its not finding that class hence the error. I'm trying to figure out why there are differences in running Ant from within the IDE and running it from command line (which works flawlessly). Can someone answer my original question concerning the class loader? Thanks, Jo

Question about debug output

2007-02-09 Thread Jon Rue
C:\Programming\cpas\trunk\server\build.xml. Any ideas? -- Jon Rue Bioinformatics Systems Programmer Katze Lab, University of Washington 960 Republican St, Seattle WA 98109 (206) 732-6038 - To unsubscribe, e-mail: [EMAIL

Re: [JAR task] adding JARS that are in a folder to another jar to create an executable jar of an application

2006-12-25 Thread Jon Schewe
; simple, I have a restriction to use only Eclipse and I want to be able to > use my buildfile in any other projects with same structure whitout having to > chand anything to the script base :) > > Oh and I almost forgot, in a old project I specified all the libs myself and > it worked fine ?? > > > > > Thank again :) > __

RE: Weird compilation problems

2006-04-06 Thread Jon Skeet
27; class I think you'll see it has to do with your SqlError enum.) Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its solutions and services at http://www.c

Only using taskdef if the task isn't already defined

2006-03-16 Thread Jon Skeet
entirely satisfactory. Any suggestions, beyond telling Ant to use large amounts of memory when building? (That's a valid option, but I'd rather avoid it...) Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clears

RE: Changing the "leading directory" path on a directory tree

2006-03-16 Thread Jon Skeet
AbsolutePath() String sourcePath = project.resolveFile (properties["whatever-file-property"]) if (!sourcePath.startsWith(changesPath)) { ant.fail (message: "${sourcePath} not within ${changesPath}")) } String finalPath = outputPath+"/"+sourcePath.substring (change

RE: basedir returning the canonical rather than absolute directory?

2006-03-10 Thread Jon Skeet
> Is there any way of suppressing this behaviour? And the answer is... yes: ant -f `pwd`/build.xml ... Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift,

RE: basedir returning the canonical rather than absolute directory?

2006-03-10 Thread Jon Skeet
s like it's Java which is doing this. A simple Java program which just prints out new File("foo").getAbsolutePath() prints out the canonical path. It may be something in the Java shell script. I'll have to work out how to fix things up manually... Jon Clearswift monitors, cont

basedir returning the canonical rather than absolute directory?

2006-03-10 Thread Jon Skeet
his from a symlinked directory, and you see the canonicalised name. Is there any way of suppressing this behaviour? Environment: Linux (Fedora Core 3), Ant 1.6.5, Java 1.5 Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using

RE: junit & ant

2006-03-09 Thread Jon Skeet
ry on the command line 2) Put junit.jar into the lib directory 3) Take ant-junit.jar out of the lib directory Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its s

RE: Support for JUnit 4?

2006-02-23 Thread Jon Skeet
someone else. I'm also already on the JUnit-devel mailing list - I'm happy to act as a conduit, as it were. Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, it

RE: Help with Microsoft visual source safe ant task

2006-02-13 Thread Jon Skeet
to do it from the command line, but from the VSS Explorer you can hit Ctrl-S and then fiddle with the options appropriately to find out what's checked out. Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift

RE: Help with Microsoft visual source safe ant task

2006-02-13 Thread Jon Skeet
ly, and locks it so that other users can't also check it out (they can only fetch the latest version). (VSS can be configured to allow multiple checkouts, but you get the idea.) Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email

RE: Unable to archive properly

2006-01-03 Thread Jon Skeet
t;" which doesnt have any class files at all, > What could be the problem? Well, you're creating the jar directory and then including all the class files within it - but there won't be any. basedir specifies the directory to get files *from* - it should be ${path} I suspec

RE: JUnit task

2005-12-06 Thread Jon Skeet
you'd normally have the junit jar file, etc, zip it up and post it somewhere? That's probably the best way of finding out what's going on. Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift prod

RE: JUnit task

2005-12-06 Thread Jon Skeet
t; depend on JUnit so I can't see why the following gives the > same error (declared inside the junit tag).. > > > > That's given your basedir as a pathelement - how about giving it the "testing" directory instead? Isn't that the base of the testing classes? J

RE: how to (usably) include one JAR in another?

2005-12-01 Thread Jon Skeet
> How to make include the *contents* of another JAR, > rather than just that JAR file itself? What I mean: Have you tried using ? I haven't used it myself, but given the documentation, it looks like it's what you're after. Jon Clearswift monitors, controls and prote

RE: Writing files

2005-11-28 Thread Jon Skeet
> Does any body know how to create a property file and write > some properties in it from ant? Do you know any ant task > which can do that? Absolutely - the optional task. Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corpor

RE: [tag] Re: The good ol' JUnit problem

2005-11-14 Thread Jon Skeet
example of how to do this? No, there is no way of doing it without either modifying the environment or using "copies" of the tasks with different class names. Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using

RE: JUnit task not working

2005-11-10 Thread Jon Skeet
> When i run the ant junit task i get the following error : Have you looked at the FAQ entry about Junit? See http://ant.apache.org/faq.html#delegating-classloader Have you placed your junit jar file (not the Ant one, Junit itself) in the ant\lib directory? Jon Clearswift monitors, contr

RE: passing the name of a property file as parameter

2005-11-09 Thread Jon Skeet
mplete example). Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its solutions and services at http://www.clearswift.com This communication is confidential and may cont

RE: passing the name of a property file as parameter

2005-11-09 Thread Jon Skeet
some time in the past, but it's fine now... Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its solutions and services at http://www.clearswift.com

RE: The good ol' JUnit problem

2005-11-09 Thread Jon Skeet
> --- Jon Skeet <[EMAIL PROTECTED]> wrote: > [SNIP] > > I've made the change (as well as fixing up some HTML > > problems) and > > mailed the file to Steve for check-in. It looks like I > don't have SVN > > access after all - either that, or

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
I've made the change (as well as fixing up some HTML problems) and mailed the file to Steve for check-in. It looks like I don't have SVN access after all - either that, or I've got a different username or password to before. Jon Clearswift monitors, controls and protects all its me

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
le is that if you add the jar file mid-build, that jar isn't added to the core classloader (for obvious reasons). I'll investigate whether using an task after doing the copy does the right thing - if it does, then a bootstrapping layer would sort me out. I still think it would be nice

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
have write-access, shall I add these two properties to the manual in SVN? Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its solutions and servic

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
cluded the right libraries. Perhaps there should be multiple distributions, even - one "bundled" one and one without any of the optional tasks. Obviously it's easy enough to modify a distribution so that it doesn't have things, but for ease of upgrade, being able to take a "sto

RE: Classpath in external file

2005-11-01 Thread Jon Skeet
idea how to solve this issue? Just have a "help" target (with the filename in it or something similar to stop it from overriding anything else) which is the default, and just echoes something like "This file is designed to be imported from other projects". Jon Clearswift mo

The good ol' JUnit problem

2005-10-28 Thread Jon Skeet
prefer this to adding the junit jar file to ant/lib, as that makes it harder to change versions of Junit.) For Eclipse, I can modify our "template workspace" to give Ant an extra global entry to the JUnit jar file. That shouldn't be too bad. Jon Skeet Senior Software Engineer CLEARSW

RE: How to call an ant script with parameters?

2005-10-27 Thread Jon Skeet
nother > target... :/ You define them as properties: ant -f MyAntScript.xml MyTarget -DMyProperty1=MyParameter1 -DMyProperty2=MyParameter2 Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find

RE: Importing files - at the end of the file or not?

2005-10-27 Thread Jon Skeet
was wrong last week. I will go > back and change the document. > > In Ant1.6.0 the imports where tacked in at the end, but > somewhere between then and ant1.6.5 imports were fixed to go > in inline. > > Sorry jon. No problem - I'm glad it works the way it now does

RE: ant file= ... - Return Build Status to calling script ?!

2005-10-27 Thread Jon Skeet
ails, it will throw a BuildException back to the calling task. You can catch that with the Ant-Contrib try/catch/finally task. There may well be a cleaner way of doing it, but that should get you going... Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its c

Importing files - at the end of the file or not?

2005-10-27 Thread Jon Skeet
ecause the files I want to import will be defining tasks, setting properties etc. However, I'd really like to know that the behaviour is going to stay the same, *and* in what way "imports are imported to the tail". On a side-note - it's nice to be back on the list :) Jon Cle

Re: Regexp patterns

2005-09-27 Thread Jon McLennan
Actually, you should only need to put parentheses around the entire pattern: match="(pattern1|pattern2|pattern3|pattern4)" replace="" Jon Andrew Goktepe wrote: Try this: match="pattern1|pattern2|pattern3|pattern4" replace="" If that doesn&#x

Re: Configuration of .htaccess file

2005-09-26 Thread Jon McLennan
I'm sure you'll find the list you need here: http://httpd.apache.org/lists.html Frank Arensmeier wrote: ... and the address would be...? Honestly, I feel lost. I can't find a general apache mailing list. Is httpd.apache.org a good idea? Monday morning, what else can i say? /frank 2005-09-26

NoClassDefFoundError when loading class from -lib

2005-09-22 Thread Jon McLennan
le to find org.apache.log4j.Category when I get it from the loader, but it can't be found when I load a class that imports it? I can get this to work if I put all external jars I need directly in the Classpath, but this can cause problems on Windows if the value of Classpath gets too long and I'd like to avoid that. Jon

Can one effect the parent build process from subant?

2005-08-17 Thread Jon Schewe
ssible with ant? ________ Jon Schewe | http://www.mtu.net/~jpschewe GPG signature at http://www.mtu.net/~jpschewe/gpg.sig.html For I am convinced that neither death nor life, neither angels nor demons, neither the present nor the future, nor any powers, neither height nor dept

Re: nontrivial dependencies

2005-05-18 Thread Jon Jagger
me.ant build-without-dependencies and both of these can be put into batch/script files (eg jabi/jaba, JAva Build Individual/All) Hope this is of some use. Cheers Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: if junit batchtest is skipped also skip junitreport?

2005-03-01 Thread Jon Jagger
g the index.html file from junitreport in an uptodate condition; instead I'm now simply creating a file if and when junit passes. Thanks Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

if junit batchtest is skipped also skip junitreport?

2005-02-28 Thread Jon Jagger
I have a package based ant setup which uses the following... ... ... ... ... ... ... Many thanks Jon - To

Ant, and user input in Java

2005-02-09 Thread Jon Pearse
d (thus running the java app in the same VM), ant complains that it can't find the class, and that I should make sure it's in the classpath. I've not found anyone who can work out why that is, either - I'm pretty sure I

dependent target names - one per line?

2004-11-08 Thread Jon Jagger
Suppose I have a target naming two or more dependent targets. ... is there any way to name the dependent target names other than in a comma separate list? I'd prefer it if I could somehow name them one per line. Thanks Jon J

slight duplication because target name is not available

2004-11-08 Thread Jon Jagger
ent: >ant a.b.c I could use something along the lines of: >ant -Dpackage=a.b.c run-test However I can't see how to do this and retain the explicit package-level dependencies. Any ideas? Thanks Jon Jagger - To unsubs

junit and ant again

2003-09-23 Thread Jon Schewe
ious mailing list posting that explains the problem or a FAQ would be just fine. -- Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED] For I am convinced that neither death nor life, neither angels nor demons, neither the present nor the future, nor any powers, neither height nor d

[ANNOUNCE] ImTask adds transports

2003-09-02 Thread Jon Madison
it i'm not currently interested (would be nice if someone else added it though?! :) check out http://imtask.sourceforge.net for the details and downloads. (download links are on the left-hand nav). thanks to all those interested, feedback is always welcome and appreciated. j. --- Jon Mad

expanding properties in custom task

2003-08-29 Thread Jon Madison
passes to the task. --- unfortunately i don't see anywhere else it explains how to make this the case. how would i handle any properties to expand them? does Ant have any built-in facilities readily available for this? thanks! j. --- Jon Madison Consultant, Thought For Food Tech, LLC

Re: Ignoring build-exceptions

2003-08-19 Thread Jon Madison
so you're talking about a build exception, or an error? most tasks support failonerror attribute, i.e. set to "false" on any task that you don't want to stop the entire build due to an error. j. --- Jon Madison Consultant, Thought For Food Tech, LLC http://w

Re: Jabber Logger WAS: RSS...

2003-08-14 Thread Jon Madison
awesome. this is i believe my springboard for adding jabber support for the TOCTask (effectively making the name TOCTask a little less appropriate. :) taking a look j. --- Jon Madison Consultant, Thought For Food Tech, LLC http://www.tfftech.com/ http://jon.madisons.com/ - Original Message

Re: Needed - Netcomponents.jar -telnet,ftp tasks

2003-08-14 Thread Jon Madison
do you have web access? http://jakarta.apache.org/commons/net/ let us know if/when you get 'em so your box won't be flooded otherwise. --- Jon Madison Consultant, Thought For Food Tech, LLC http://www.tfftech.com/ http://jon.madisons.com/ - Original Message - From:

Re: RSS...

2003-08-14 Thread Jon Madison
umbers and descriptions? is there a standard format (i assume so)? ant is built with ant, right? is there an ant task for RSS-ifying build completion/file change status? how is the Ant front page news updated? it should be Really Simple, to get something going quickly. ;) j. --- Jon Madison