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
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
ome docs on this?
Thanks in advance,
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.
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
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
; 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 :)
>
__
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
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
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
> 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,
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
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
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
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
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
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
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
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
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
> 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
> 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
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
> 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
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
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
> --- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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]
I have a package based ant setup which uses the following...
...
...
...
...
...
...
Many thanks
Jon
-
To
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
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
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
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
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
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
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
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
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:
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
54 matches
Mail list logo