hi all,
i have tdk 2.2 on my machine ( windows 2000 ). i had earlier tried to shift
to tdk2.3 but i did some changes in my environment variables and after that neither
tdk2.2 nor 2.3 were working somehow i got 2.2 running ( ie. i could build an
application after following steps upto ste
I have the following code running against Ant 1.6.2:
Project project = new Project();
project.init();
project.setUserProperty( "base.dir", new File( rootDir
).getAbsolutePath() );
project.setUserProperty( "ant.file", new File( new File( rootDir ),
buildFile ).getAbsolutePath() )
Hi Greg,
to be honest, I hardly see any reason of *not* placing
junit.jar in $ANT_HOME/lib as it saves a lot of fuss.
Anyway, here are some more ways, that prevents from
moving files in and out distribution:
1) You can place junit.jar (and all third party jars
required by ant optional task) in use
Michael,
I have been on vacation for a week, and have been skimming through all
my Ant-users and CC-users e-mails. I see that you asked the same
question on both lists. Unfortunately, I don't have a definitive answer
for you. But, I'm going to guess that you must be working in Windows.
In the W
I've improved on the technique that Vadim suggested so I thought I would
post it in case anyone working with conditionally-set properties had
problems somewhere down the road
The only thing I didn't like about Vadim's suggestion was that it promised
to make the build file rather large if the n
Thanks, Dominique! I'm one of those people who doesn't follow verbal
descriptions nearly as well as a real example so your example - and
Vadim's - are very helpful in understanding what I am doing wrong.
Rhino
- Original Message -
From: "Dominique Devienne" <[EMAIL PROTECTED]>
To: "Ant U
Thanks for the clarification, Vadim! Your suggestion works perfectly.
My script now does exactly what I want it to do. Also, I am using optional
tasks only when no core tasks are available that do what I need, i.e. scp
and sshexec. That seems like the best possible approach to me.
Thanks again!
> From: Rhino [mailto:[EMAIL PROTECTED]
>
> Can you tell me what search words to use for finding some of these
many
> examples that you say are in the archives? I spent considerable time
> looking
> in the archive already, using search terms like 'conditional property'
and
> so forth but none of th
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> > Also, glad to hear import allows you do have a nice generic
> > build file. But what prevents you for putting the Path info
> > in the lightweight importing build file then? It's the project
> > specific build file at this point, no?
>
> Yes, but I
I think you misunderstood what I was trying to say, I was just saying
that you could have set the properties in the setparms target, instead
of calling down to Sympatico or Tongue. Like:
-Original Message-
From: Rhino [mailto:[EMAIL PROTECTED]
Can you tell me what search words to use for finding some of these many
examples that you say are in the archives? I spent considerable time looking
in the archive already, using search terms like 'conditional property' and
so forth but none of them revealed a clear example that resembled what I am
Quoting Dominique Devienne <[EMAIL PROTECTED]>:
> Sorry for missing the point again ;-)
No problem. I appreciate that you took the time to answer :-)
>
> XML or .properties syntax for properties *is* irrelevant.
> But defining Ant paths in XML properties files is not.
Debateable
> This
> was a
> From: Rhino [mailto:[EMAIL PROTECTED]
> I don't think I've ever seen a target that sets properties within a
> conditional before. Could you possibly provide an example?
>
> By the way, I've got my script working very nicely now with
'antcallback'.
> Thanks *very* much for this suggestion! Howeve
Vadim,
I don't think I've ever seen a target that sets properties within a
conditional before. Could you possibly provide an example?
By the way, I've got my script working very nicely now with 'antcallback'.
Thanks *very* much for this suggestion! However, I'd still like to see other
ways to do
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>
> Now, to the original point of 's defined in not
> working like
> defined elsewhere. I define my dependencies in an
> file
> and make use of the ability to define 's in that same
> file.
> It keeps things together and keeps my main build file
Quoting Dominique Devienne <[EMAIL PROTECTED]>:
> > From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> >
> > I'm not 100% sure this is a bug, or just a known limitation of
> > , but I'll give it a go and see what others think (I'm
> using
> > Ant-1.6.2, btw)...
>
> Jacob, isn't kind of superseded by ?
Why don't you try setting the properties using conditionals in the
getserver target. Instead of calling down to sub targets.
-Original Message-
From: Rhino [mailto:[EMAIL PROTECTED]
Sent: October 12, 2004 9:20 AM
To: Ant Users List
Subject: Re: Properties set within conditions
Is 'antcal
Is 'antcall' (and 'antcallback') the only way to create my properties
conditionally? I used 'antcall' and 'condition' to set my properties because
they are the only ways I know to set a property conditionally within the Ant
core tasks; if there is a better way, I'd love to hear about it.
Rhino
-
Greg,
I found some interesting comments on the Ant Archives; see [1] and
its further comments on the same thread. Bottom line, it is recommended you
use the -lib flag when invoking ant; so your ant invocation would be:
$ ant -lib /path/to/your/jars -f buildfile.xml
Hope this helps you
R
Hi everyone. I can now make Ant + JUnit work on my machine, but only by
adding files to the Ant installation. I do *not* want to tell my students
they have to do this --- my experience is that mucking with third-party
installs leads almost instantly to maintenance migraines. So, here's what
I've
This is because you're are setting these variables in an antcall. Which
does not actually propogate up those properties. You could check out the
antcallback task in ant-contrib. That will do what you want also see the
recent thread about returning values from antcallback.
__
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>
> I'm not 100% sure this is a bug, or just a known limitation of
> , but I'll give it a go and see what others think (I'm
using
> Ant-1.6.2, btw)...
Jacob, isn't kind of superseded by ?
I've never used the former, so maybe I'm missing what it's
goo
Sharad wrote:
Hi,
I want to create a target which can be called using . But i want
to get the return value from the called target. Is there a way to get it?
I tried using ant contrib's variable property using but the
antfetch and antcallback (from ant contrib) might do what you want.
On Mon, 11 Oct 2004 13:50:50 -0500,
Jacob Kjome <[EMAIL PROTECTED]> wrote:
> Or use a rather than . There are very few reasons to still
> be using anymore now that exists.
Just out of curiosity, could you tell me the reasons?
I can't find them.
-- Yuji Yamano <[EMAIL PROTECTED]>
Loan me y
Hi,
I'm having a problem with seeing a property that I set within some
conditional logic. Some new properties are only visible within the target
where I add them but I need them to be visible in later targets
as well.
I've spent several hours looking at the archives for this mailing list
> Jan is right,
Thanks :)
> The rhino build system is a bit silly.
> It has a build.xml in src as well as the root.
> The build.xml in src assumes that it is called
> from the root build.xml (thus ignoring normal
> ant conventions and common sense).
outch ...
Jan
Hi,
You can use properties when forming Class-Path
attribute of your jar like this:
where jar1 and jar2 properties holds the names of the
jar files you want to include. However, I am forced to
suppose that you have already constructed a classpath
that holds all your properties called
runtime-c
Jan is right,
The rhino build system is a bit silly.
It has a build.xml in src as well as the root.
The build.xml in src assumes that it is called
from the root build.xml (thus ignoring normal
ant conventions and common sense).
You need to cd to the root and run ant from there.
Peter
[EMAIL PROTECT
Hello,
> Hi All!
>
> I want to recursively delete everything inside
> build, but leaving build
> alone. This is what I have so far.
>
>
>
>
>
> Is there a way to do this other than deleting and
> re-creating the whole
> thing?
Yes, there is. I copied it directly from ant manual on
delete
Try:
Peter
Robert Mark Bram wrote:
Hi All!
I want to recursively delete everything inside build, but leaving
build alone. This is what I have so far.
Is there a way to do this other than deleting and re-creating the
whole thing?
Advice would be most welcome!
Rob
:)
-
Hi all.
I'm having a problem (that is reasonably recent as this USED to work), with
the javadoc task.
When I run it, it runs for a few seconds, but doesn't produce any documents.
FYI: Ant 1.6.2, Redhat Fedora Core 2, Java 1.5.
>ant jdocs
Buildfile: build.xml
jdocs:
[javadoc] Ge
OK, it is working if the classpath is specified in the manifest file like
the following:
We have to remember to modify the Class-Path element everytime we modified
the "runtime-classpath" (is there a cleaner way?, e.g.
value="${runtime-classpath}").
Thank you!
From: Conor MacNeill
Hi All!
I want to recursively delete everything inside build, but leaving build
alone. This is what I have so far.
Is there a way to do this other than deleting and re-creating the whole
thing?
Advice would be most welcome!
Rob
:)
--
Robert Mark Bram
http://phd.netcomp.monash.edu.au/Robert
33 matches
Mail list logo