Can I use parameters in description attributes ?
i.e.
Erik
Hi,
I'm trying to use P4Sync in my ant script to synchronise all my source files
before starting to compile. I already downloaded the optional.jar and put it
in my lib directory under my ANT_HOME. However every time when I try to call
P4Sync I get the following message
/home/erik/square/src/buil
In this example "build-shared" will not get executed twice.
--- Viraj Purang <[EMAIL PROTECTED]> wrote:
> HI,
> IF Target X which depends on target Y has been executed just after
> the
> target Y was executed, will it still go ahead and do target Y again
> ...
> example :
>
> If I am execu
I really like some of the Ant Logos that have come up - having a "built
by Ant" glyph to hide inside our apps would be cool.
One thought though: while we will need a large logo in some places, in
some places (eg web sites and about boxes) it would be useful to have a
small "button" that matches.
The following patch enables one to define properties specific to a
given OS. For example:
If the OS mismatches the property is ignored.
Frank Varnavas
=
diff -c -r1.1.1.1 Property.java
*** Property.java 2001/06/21 20:50:04 1.1.1.1
--- Proper
> Pier Paolo Bortone wrote:
> I'm using ANT to package my Cocoon site and send it to production
> system (LINUX RH 7.1), but the FTP task is very slow before 'sending
> files' action, 40 sec.
The FTP task can check to see if any files have changed (based on
timestamp) and only upload newer files
Well this could be the case I'm a relative newbie to all of
this so maybe I need the JDK though I downloaded the SDK
from IBM's website and tried using it to the same effect. I
haven't been able to find a package labled specifically JDK
for Linux. Most of the stuff I've found is either labled
SD
A WAG here, but it sounds like you need to get the JDK and not the JRE.
I'm not sure why the javac is there but it was my understanding that
the jre is for executing .class files
Can you compile a HelloWorld.java program using javac?
/bill
public class HelloWorld
{
public static void main
I'm having trouble compiling ant, I've been through the
documentation several times, maybe I'm missing something but
I think everything should be set correctly.
I'm building Ant on the following system and Env Vars set.
Redhat 7.1
Kernel 2.4.5
Sun j2re-1_3_1-linux-i386-rpm.bin (Install via RPM)
HI,
IF Target X which depends on target Y has been executed just after the
target Y was executed, will it still go ahead and do target Y again ...
example :
If I am executing "build all"
will "build-shared" get executed twice ?
I feel it would not be executed, can you please conf
HI,
I am getting several errors upon compiling my source tree and I believe that
it's a classpath issue. My project compiles fine when I use Kawa but when I
try to compile the same source through my build file it squawks at me. I
have only been working with Ant to create a build file in very sh
Ok, I change the cup, redesigne my log and send it. Thanks.
AVarela ®.
Int. 2664.
> -Original Message-
> From: Stefan Bodewig [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Ant Logo
>
> Alejandro Varela <[EMAIL PROTECT
Only thing I could come up with was to use an embedded script. The
reference "i2build.packages" is simply a patternset that has the packages
I want to compile/javadoc, I include an example of it below.
Just to answer my own question...patternset does not support wildcards in
the excludesfile attribute.
But that's ok. I consolidated all of the exclude information into a single
exclude file located the directory set as the source for the javac task. I
think this is a better practice than having
Yeah, just specifiy
-logfile -verbose
on the Ant command line.
- don
--- David Roe <[EMAIL PROTECTED]> wrote:
> HI,
>
> Recently I thought there was some discussion around redirecting
> output into
> a file from a "verbose" compilation via Ant. Could someone help me
> out in
> that regard?
David, How were you able to create a project with a "." in the name, i use
VAJ 3.0.2 , and it doesnt allow me to create a project with punctuation
mark. i.e. As soon as i enter a punctuation mark (.,][- etc.) in the project
name VAJ gives an error saying "invalid project name".
-Original Mes
HI,
Recently I thought there was some discussion around redirecting output into
a file from a "verbose" compilation via Ant. Could someone help me out in
that regard? I haven't been able to find that thread unfortunately - perhaps
it was just wishful thinking? :)
Thank you,
David
winmail.
Yeah, I'm kinda happy not to be doing that for javac, and didn't really want
to start for javadoc. It does seem like a logical thing to want to do...
perhaps it's time to peer closer into the ANT source code and see if it
would be possible.
Jamie
> -Original Message-
> From: Jeremy Cr
Looking at the documentation I don't see how a patternset can be used with
the javadoc task.
One thing you can do rather than use a patternset is to copy only the
sources you wish to compile into a directory separate from your controlled
source. You can then point the Javadoc task to that directo
I am fairly new to Ant so I apologize in advance if this has been brought up
before.
I created my own task that uses the SQLExec task already provided as a sub
element. I have the following method in my class:
public SQLExec createSql()
{
this.sql = new SQLExec();
return this.sql;
}
It
Stefan, right after I sent out my last message, I found your reply.
Yes, this is very close to what I am talking about. Is it possible to have
a wildcard in the patternset? Something like:
That way, any subdirectory under the srcdir that has an excludes file would
be used automatically. Wit
Ok, I change the cup, redesigne my log and send it. Thanks.
AVarela ®.
Int. 2664.
> -Original Message-
> From: Peter Donald [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 11:26 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Ant Logo
>
> On Wed, 27 Jun 2001 21:17, Alejandr
Will, thanks for the reply.
I don't think this will work for a dynamic set of possible subdirectories.
Maybe I missed it, but I haven't found anything in ant that will let me
traverse through subdirecotries, calling a task for each one. So, I would
need to know all of the subdirectories upfront.
Ask, who knows? Any Sun employees lurking, who do we ask?
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 7:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Ant Logo
Alejandro Varela <[EMAIL PROTECTED]> wrote:
> I have designed this logo for
Is it possible to use the same patternset I define for javac in the javadoc
task? Basically I want to produce documentation only for the classes that
were actually compiled.
Many thanks,
Jamie
Jamie Lawrence (E-mail).vcf
I was genericizing it, obviously the 'ftp.ok' property has to be
conditionally set possibly via the use of additional tasks. I don't
know how he plans on checking if his FTP succeeded, but if it were me,
I'd probably just use the uptodate task and make 'ftp.ok' it's target
property.
You can *alwa
--- Don Taylor <[EMAIL PROTECTED]> wrote:
> Ok. Actually it just requires a small modification:
>
>
>
>
>
Don,
How do you see this working? What will prevent the task from
being run regardless of what results in?
I suspect what you want is to set the property in the task
alone (ass
I appreciate the feed back but the version does not seem to be the problem.
To expand a bit on the example below:
I have a project named:
SpacedObject ABC 3.1.0
in addition it has a version similar to:
010626 DET 00E
When useing the VAJLoad task it takes the form
With the CORRECT name, r
In the last days I have received mails from
three users experiencing similar problems.
All of them seem to be able to export projects
with certain names, but some project names
don't work.
Currently I'm investigating, but I don't have
any idea yet about the cause of this behaviour.
What makes it
Ok. Actually it just requires a small modification:
Note that 'checkFTPfailure' will be called *before* you attempt your
first FTP. This should be fine, since you haven't even attempted an FTP
yet that *certainly* should be a failure! :)
- Don
--- "O'Hara, Patrick
I've never had any problems with loading project names of length higher than
yours. There's one thing to keep in mind that , VA Workspace displays the
project name by appending a version number to it, so if your workspace has a
project, say, "SpacedObject ABC" version "3.1.0", you'll see "SpacedOb
Title: RE: Retry task on Error
Yes I was hoping for a loop until successful.
Patrick O'Hara
262-408-3849
[EMAIL PROTECTED]
-Original Message-
From: Don Taylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Retry task on Error
Howdy
When loading projects into the workspace there seems to be some limitations
on the name attribute.
I have 3 projects that have numbers in the name similar to:
JavaMedia Watchamacallit 010424
SpacedObject ABC 3.1.0
SpacedObject Veeger 3.3
Projects listed befor and after these will load.
What version client do you have? p4 -V should show this. requires
client 99.2 and above - well, that's the version I test against :-).
Les
> -Original Message-
> From: Kazandjian Erik [mailto:[EMAIL PROTECTED]]
> Sent: 26 June 2001 15:28
> To: '[EMAIL PROTECTED]'
> Subject: RE: P4 (wa
You're right. I have Ant installed in and the ANT_HOME system variable set
to -
"D:\program files\Ant_home\jakarta-ant-1.3".
I changed the line in the ant.bat file from
if %ANT_HOME%a==a set ANT_HOME=%DEFAULT_ANT_HOME%
to
if "%ANT_HOME%a"=="a" set ANT_HOME=%DEFAULT_ANT_HOME%
Diane Holt wrote
Alejandro Varela <[EMAIL PROTECTED]> wrote:
> I have designed this logo for the new Ant release.
I'm afraid, Peter's right. Even though Sun doesn't get a fee for each
and every picture of a cup on earth, this one may be a little to close
to the trademarked one.
Stefan
Diane Holt <[EMAIL PROTECTED]> wrote:
> Except you probably don't really want that in this target,
> since it would always print out, even if ${jar} isn't available,
Which is what his original build file did as well 8-)
Stefan
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
>
>
>
>
Except you probably don't really want that in this target, since it
would always print out, even if ${jar} isn't available, so you'd end up
with output that has an unresolved property:
[echo] log4j.jar present: ${present}
Diane
Hi!
When exporting from Visual Age almost everything works very well. Some
projects however cannot be exported.
Typicly it is projects that come with Visual Age, like "Java class
libraries", "IBM Enterprise Extension Libraries" etc.
When I try to export these, the Message log says:
[vajexport
ooo - i like that!!!
That's the best one ive seen yet. I hope they choose it.
Good job!
Bill
Alejandro Varela wrote:
> I have designed this logo for the new Ant release.
>
> <> <>
>
> Alejandro Varela.
> Argentina.
>
> AVarela ®.
>
>
> --
Title: RE: Set properties.
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: 27 June 2001 15:04
To: [EMAIL PROTECTED]
Subject: Re: Set properties.
Natalia Bello <[EMAIL PROTECTED]> wrote:
> Hi, I am quite new with Ant, and I have some problems.
Oops! Target 'ftpSecond' should read as follows:
You want to change 'unless' to 'if'! *BIG* difference! :)
- Don
--- Don Taylor <[EMAIL PROTECTED]> wrote:
>
> --- "O'Hara, Patrick" <[EMAIL PROTECTED]> wrote:
> > Is there a way to retry a task when it errors out? I have a FTP
> > task.
On Wed, 27 Jun 2001 21:17, Alejandro Varela wrote:
> I have designed this logo for the new Ant release.
>
> <> <>
Unfortunately the steaming cup is one of suns trademarks which means we can't
use it ;(
Cheers,
Pete
*-*
| "Faced with the ch
I have designed this logo for the new Ant release.
<> <>
Alejandro Varela.
Argentina.
AVarela ®.
<><>
--- Tanvi Mody <[EMAIL PROTECTED]> wrote:
> I have just installed the binary version of Ant. Have follwed the
> instructions to set the correct system variables (PATH and CLASSPATH
> etc). When I run ant with a valid build.xml file in the current
> directory, I get the message -
>
> Files\Ant_hom
--- "O'Hara, Patrick" <[EMAIL PROTECTED]> wrote:
> Is there a way to retry a task when it errors out? I have a FTP
> task. The
> server we are connecting to is a little hit and miss. I would like
> to retry
> the FTP task if it fails to send all the files.
>
I'm assuming you can already figu
what did you set your ANT_HOME variable to?
Tanvi Mody wrote:
> I have just installed the binary version of Ant. Have follwed the
> instructions to set the correct system variables (PATH and CLASSPATH
> etc). When I run ant with a valid build.xml file in the current
> directory, I get the messag
I have just installed the binary version of Ant. Have follwed the
instructions to set the correct system variables (PATH and CLASSPATH
etc). When I run ant with a valid build.xml file in the current
directory, I get the message -
Files\Ant_home\jakarta-ant-1.3a==a was unexpected at this time.
Wh
Hi Erik,
The -s option is not an option of sync, but of p4 itself. Have a look at the
manual and you'll see that this option causes p4 to add a prefix to each
line of output. This makes it much easier for integration into other tools.
Jörg
>-Original Message-
>From: Kazandjian Erik [mai
I have the following scenario:
If I change util.jar (both in size and timestamp) archive.jar doesn't get
recreated, as if it was up to date.
Is this normal behavior or should it be considered a bug?
Thanks for your help.
Title: Retry task on Error
Is there a way to retry a task when it errors out? I have a FTP task. The server we are connecting to is a little hit and miss. I would like to retry the FTP task if it fails to send all the files.
Patrick O'Hara
Workscape, Inc
N17 W24222 Riverwood Pl
Waukesha, W
Thanks Conor,I recovered from the errors.
Mistake was setting classpath in ant build file.
I removed it, now it is working fine.
As you suspected even ejbc was not running from command line.
Srini
-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27
Title: Set properties.
Hi,
I am quite new with Ant, and I have some problems.
I am trying to use the same target from two different ones; setting some parameters, and execute or not this last target depending of one of the parameters.
This is the code:
Kyle Adams <[EMAIL PROTECTED]> wrote:
> Here's an example:
>
>
>
>
>
>
OK, I'm part of the "single compile for all modules" fraction, and
prefer a single build file, but my builds are not as complex as those
other people have to live with.
What you are tryin
Don Taylor <[EMAIL PROTECTED]> wrote:
> Stefan says this is impossible, I claim he isn't devious enough! :)
>
> Here's my idea:
>
>
>
>
>
>
>
>
you won 8-)
Stefan
In general, your "workaround" is standard operating procedure. However,
someday you may find that you *really* do need to make an antcall and
that you *really* need to propagate the the properties from the caller
to the callee. Stefan says this is impossible, I claim he isn't devious
enough! :)
From: "Srinivas Subbaraju" <[EMAIL PROTECTED]>
>
> I extracted the parser.jar file into weblogic/classes and started running
> ant
Why did you do that? It is probably best not to mess with weblogic's
classes area - you may be setting many potential class conflicts. Have you
tried to run a command
Here's an example:
The three subdirectories above (bm, uv and rh) are the three subprojects that any
project can have. Now, if a particular project does NOT have all three of these
subprojects, the build will fail with the code above. I don't know enough a
Thanks. The workaround for me is to place those targets in the init
attribute. i.e,
Now, "ant all compile" works fine. Perhaps the or
documentation could be updated to explain this issue.
Jamie
> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sen
Rob van Oostrum <[EMAIL PROTECTED]> wrote:
> Sounds good to me, provided that the -always switch works as
> expected.
Given that there is a bug report and that Larry has sent a patch to
move the timestamp check into Ant, invoking rmic all the time may not
be the best option. Guess we look for "
Jamie Lawrence <[EMAIL PROTECTED]> wrote:
> Why do properties in a target only get set if the target is called
> from the cmd-line or init, but aren't set when called using antcall?
They are set, but only for the duration of the antcall. When you use
, you get a copy of your current project and
Why do properties in a target only get set if the target is called from the
cmd-line or init, but aren't set when called using antcall?
For example, if I call "ant pc compile" everything work fine (the pc target
sets a property pc, compile then calls the pc.xml file and if the pc
property is set
Sounds good to me, provided that the -always switch works as expected.
About the -sourcebase attribute: what if a user sets the sourcebase to the
source base of the rest of the project (so that the generated source files
wind up in the same place as the other sources)?
It would mean that they mi
Hi,
I'm using ANT to package my Cocoon site and send it
to production system (LINUX RH 7.1).
I wanna send the package all in one without remove the old files, but the
task give me this error:
D:\sviluppo\nisdev\build.xml:114: could not create directory: 521
"/usr/local/webapps/nis" direc
Hi,
I'm using ANT to package my Cocoon site and send it
to production system (LINUX RH 7.1), but the FTP task is very slow before
'sending files' action, 40 sec.
Someone knows the reason?
Thanks in advance.
Pier Paolo.
"Kyle Adams" wrote:
> For example, our user management app may only have the back-end
implemented.
> So the directory for the app would have only one subdirectory. On the
other
> hand, our customer management app may have the front-end and the back-end
> implemented, so the directory would c
66 matches
Mail list logo