Is there any way to set up my jdk environment from within the Ant file? I'm on
Windows Vista and build different products with different JDK versions from
within a DOS window and would like the build.xml to load the respective jdk.
But not sure how Ant can overwrite the system environment. A
o...that's why I recommended the Ant way :)
Scot
Res Pons wrote:
Thanks for all your help. Be it in Dos/Batch or Linux/Shell, it looks like
you have to traverse through dirs and subdirs as javadoc clearly does not
understand recursing by itself. One of our engineers had confused me by
javadoc -d foo -sourcepath ${aDir} `find ${aDir} -type f -name \*.java`
done
Or something like it...clearly you can get as fancy as you want :)
Scot
Res Pons wrote:
Scot
Thanks for your reply. I would like to do this in Ant eventually but I
think it would be easier for me to understand
x27;t you want to do this with Ant in your experimentation?
Clearly it does so much for you (for instance iterating down in the dirs)...
Res Pons wrote:
Reposting again.
Shouldn't javadoc automatically recurse through directories? It doesn't
for me. I would like to run javadoc at
List"
To: "Ant Users List"
Subject: Re: javadoc
Date: Mon, 9 Apr 2007 15:59:06 -0600
In your installation of Java SDK documentation read carefully
tooldocs/windows/javadoc.html#runningjavadoc
Specifically, don't think you can put a -d switch after *.java
On Apr 9, 2007,
al Message Follows----
From: "Res Pons" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: user@ant.apache.org
Subject: javadoc
Date: Thu, 05 Apr 2007 21:28:18 -0700
Almost wrong forum, I know...but...
I would like to test and run javadoc at a DOS prompt before writing ant
correction: that's src and not src and just a typo in this email and not at
the DOS prompt
Original Message Follows
From: "Res Pons" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: user@ant.apache.org
Subject: javadoc
Date: Thu, 05 Apr 2007 21:28:18 -0
Almost wrong forum, I know...but...
I would like to test and run javadoc at a DOS prompt before writing ant code
for it but the problem is that when I cd into my project and execute the
following, I get an error1 and nothing happens.
c:\>cd Builds\project1
C:\Builds\project1>javadoc -sourcepa
Date: Thu, 5 Apr 2007 16:06:51 -0400
Try:
call ant clean build
-Original Message-
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 2:50 PM
To: user@ant.apache.org
Subject: forking ant
I'm writing a basic window's .bat file to cd into my working folder and ru
I'm writing a basic window's .bat file to cd into my working folder and run
ant clean build. And when ant build is finished to return back to the
original bat file and copy the war/ear files to my local jboss deploy
directory. I've tried 2 things
cd workingFolder
ant clean build
and
start
cancel that please. I overlookd the -verbose attribute.
Original Message Follows
From: "Res Pons" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: user@ant.apache.org
Subject: capturing or echoing the output of the copy task
Date: Tue, 03 Apr 2007 10:22:07
The copy task only echoes the number of files copied but it does not show
the actual file names being copied. I don't see an attribute for this task.
How can I force the copy task to show the list of files being copied w/o
writing tons of code or echo statments?
e.g.
Target:
[copy] Copy
I'm interested in this problem as well,
Also if anyone could point me to documentation what I need to set up and run
javadocs in my nighly builds. Is it as simple as adding the javadoc task to
one of my targets and those property values defined?
Original Mes
Could someone please tell me if doing this on a linux box
ant clean build > build.log
Instead of,
ant -l $HOME/build.log clean build
Is a good or bad idea? What're the problems with using direction commands to
capture ant's log?
Thanks.
_
My New Year Wish
Date: Thu, 25 Jan 2007 17:13:56 -0500
I'd be happy if they'd pleeease just add if/unless attributes to all
tasks.
-Original Message-
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 4:09 PM
To: user@ant.apache.org
Subject: My New Year Wi
I wish Ant was a full scripting language as well, so I could stay true to
Ant. I hate system calls. I resort to Perl, Bat, and Linux shell
scripting many times 'cuz it's just much easier. Is that the norm for
everyone else? Some people wish for a million dollar and here I'm wishing
for An
Great thanks, I will give it a try.
Original Message Follows
From: Steve Loughran <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: Ant Users List
Subject: Re: Another Oddity with Anthill OS
Date: Thu, 18 Jan 2007 10:07:12 +
Res Pons wrote:
Asking this question
c:\.build.properties.xyz and it works perfectly but I'm not sure how to do
this in Anthill.
The 2 prop files have a lot of common values except 2 values having
different paths destined for different platforms
Thanks
Original Message Follows
From: "Res Pons" <[EMAIL
I'm testing a dummy project which checks out a basic simple project out of
Subversion and echoes bunch of paths. The purpose of this project is to see
if I can force loading different property fiels at the command line via
Anthill. Basically, I would like to use the same project 3x but each tim
ctory. I
> am able to run junit tests via ant from the command line, butfor some
> reason when I run it through cruise control, I get this error.
>
> Does anyone have an idea where I can look?
>
> I appreciate this isn't cruise-control-users, but clearly people try to
> use C
ehavior
Date: Wed, 03 Jan 2007 13:41:47 +
Res Pons wrote:
Thanks for your reply. I was using AnthillOS for a while but I gave up in
frustration. It's a kiddy tool for starters but very easy to use, however,
the developers of it were so agonizingly slow to implement features, I gav
Odd Behavior
Date: Sun, 31 Dec 2006 13:58:39 +
Res Pons wrote:
I think I emailed Scott prematurely yesterday and it appears that both of
you may be right. I'm seeing a different java compiler kicking in at night
when the cronjob starts. I see gnu's being invoked by the cronjob and s
ome/user/.profile; ...." worked great.
- Alexey.
Res Pons wrote:
Is it working for you now? I got it to work for me.
Original Message Follows
From: "Alexey N. Solofnenko" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: Ant Users List
Subject: Re: Odd B
rsion :)
Alexey N. Solofnenko wrote:
I concur. I had to run my .profile script manually, because it did not seem
to run for cron jobs.
- Alexey.
Res Pons wrote:
I think I emailed Scott prematurely yesterday and it appears that both of
you may be right. I'm seeing a different java c
to run my .profile script manually, because it did not seem
to run for cron jobs.
- Alexey.
Res Pons wrote:
I think I emailed Scott prematurely yesterday and it appears that both of
you may be right. I'm seeing a different java compiler kicking in at night
when the cronjob starts. I see gnu
Ok thank you again both of you. It was indeed the wrong version of javac.
I just relinked the /usr/bin/javac to the correct version. Thanks again.
Original Message Follows
From: "Res Pons" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: [EMAIL PROTECTE
Si vous n'ĂȘtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: "Res Pons" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, December 27, 2006 3:44 PM
Subje
the wrong JDK (as in the gcc version)... When you are
running ant in the "working" example, which java is it using?
Res Pons wrote:
I'm hoping someone could help me with my ant compile process. I have set
up the build process and automation on a linux centOS box.
When I cd into
I'm hoping someone could help me with my ant compile process. I have set up
the build process and automation on a linux centOS box.
When I cd into the build subfolder and manually run
$ ant clean build
Everything's ok.
But when the cronjob kicks in and tries to compile, I get tons of error
I'm happy but would be much happier with an .exe or .msi :)
Thanks for the explanation and happy holidays :)
Original Message Follows
From: <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To:
Subject: AW: ant 1.7
Date: Fri, 22 Dec 2006 09:20:55 +0100
> > I downloaded the ant.zip file (
to do work like copying files around - you could build your
software using maven.
You can delete all these files, they are not needed. I might remove the md5
and sha1 files from future distributions, they are uninteresting.
Regards,
Antoine
Original-Nachricht
Datum: Thu, 21 De
I downloaded the ant.zip file (didn't see any .exe for windows xp) and
unzipped it to my c: drive. could someone please tell me what are all these
.pom .md5 and .sha1 files are. Do they serve any purpose in the windown's
environment? Can I delete them to save space? They make glancing the jar
0 -0800
The property you should set on the command line is do.delete not
validargs. Run ant like this...
ant target -Ddo.delete=y
That should prevent the input task from prompting you.
-Rob Anderson
> -Original Message-
> From: Res Pons [mailto:[EMAIL PROTECTED]
> Sent: We
hi
I'm hoping someone could help with this. I've tried everything else and
can't pass the argument to the input task at the dos prompt or run time.
Eventually, i need to add it to Anthill. thanks for your help
c:\>ant target -Dvalidargs=y
it does not work and I still get a prompt to input
Hi everyone
I'm trying to run a batch file consisted of 3 or more lines below and cd
into different build folders of different projects and run a specific ant
target as listed below. But the problem is that after the first instance of
ant is run successfully, the batch file exits and the subse
ies file you do not need to use the xml equivalent of the @
character, and no quotes. In other words, just put the unaltered
password in the properties file. This should work.
-Rob A
> -Original Message-
> From: Res Pons [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 4:
What ssh server version are you using on the target host?
-Rob A
> -Original Message-
> From: Res Pons [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 1:06 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
X-WSS-ID: 68AAF4B61UG536533-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
Could you be more specific? What vendor and version of their package are
you using? Can you scp files from the command line or with another scp
client?
-Rob A
> -Original Message-
: 68AAD29A1UG492280-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
What ssh server version are you using on the target host?
-Rob A
> -Original Message-
> From: Res Pons [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 1:06 PM
> T
AD32C41UG437659-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
Not sure why it is not working for you. Please run:
ant -debug -f build2.xml -Dfull.build.number=712 buildnum
... and send the output.
-Rob A
> -Original Message-
> From: Res Pons
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
FIL
alArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
FILETIME=[F5433500:01C6A510]
X-WSS-ID: 68AD3DDA1UG416368-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
What are the contents of the jsch-0.1.28.zip file? Please send the
portion of your build.xml that shows your
Hi all
I downloaded the latest version of jsch-0.1.28.zip from jcraft last night
for the scp task. Two questions:
1. Do I have to rename the jar file from jsch-0.1.28.zip to jsch.jar or
would ANT understand it with the version number embedded in it?
2. My SCP tasks have not run successfull
f: RE: Escape character of @ in Ant
>
>What I found at http://www.w3schools.com/tags/ref_ascii.asp is
>that the at sign can be represented at @.
>I could not find another representation of it.
>HTH Bill
>
>-Original Message-
>From: Res Pons [mailto:[EMAIL PROTECTE
ked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 11 Jul 2006 03:59:47.0394 (UTC)
FILETIME=[735D9A20:01C6A49E]
What I found at http://www.w3schools.com/tags/ref_ascii.asp is that the at
sign can be represented at @.
I could not find another representation of it.
HT
could someone please tell me how I escape @ to pass it form my
.build.properties into the build.xml
&atsign;
Thanks
_
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-u
in
if those are classes then they shoule be in the form of com.manager.*
instead of slashes. if they're directories relative to your
project/wroking folder then they need to be more complete than just
more like
Original Message Follows
From: "Chun Ji" <[EMAIL PROTECT
also google for antexplorer, it creates a graphical mapping of your targets
and tasks and the files involved.
Original Message Follows
From: "Scot P. Floess" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Ant Users List
Subject: Re: flow chart/graphical representation of build.xml/
ssh task doesn't have such an attribute. You either have to work with a
combination of Ant and Expect or get your Sysadmin to grant you sudoless
access like I did.
Original Message Follows
From: "Venkatesh Vijayakumar04" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: "Ant Users Li
ild
can be setup elsewhere without difficulties. Sometimes, I think it is
quite "funny" when a script user has to "key in" passwords for 10s of
different systems (database servers, application servers, ssh, LDAP,
mainframe connectivity,
...) But it is like that.
Regards,
Antoin
You have to download antcontrib.jar. Google or look for AntContrib in
sourceforge. It will give you some programming capability and it has the
switch command which behaves like case)
Original Message Follows
From: "Shweta Bodade" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: "Ant
Is there any style documentation or suggestion from anyone as to when to
include properties in the build file and when to put them inside the
property file, especially when different development teams and me the build
engineer have to access the same file an do builds?
I set an order of preced
t.apache.org. You already
have the tar.gz installed, but you are seeing some unexpected behavior
because the rpm is still installed. Simply uninstall the rpm and your
problems should go away.
-Rob A
> -Original Message-
> From: Res Pons [mailto:[EMAIL PROTECTED]
> Sent: Monday, May
here is an Ant rpm that ships with RHEL 3.5. To find out for
sure run:
rpm -qa | grep -I ant
Uninstall the rpm. Also searh the list archives for related threads. I
know this sort of thing has come up before.
-Rob Anderson
> -Original Message-
> From: Res Pons [mailto:[EMAIL
Hi
I've always used Ant on Window's environment. I would like to install Ant
on a linux box and set it up as my build machine.
I've already installed the latest Subversion, Tomcat 5.5.14, and JDK 1.5.06
and latest Ant.tar.gz from Apache. I did not do a native compile and just
expanded the
even combine gump and maven. You can use gump as a tool to
build
> > your complete stack of projects, and make gump invoke maven.
> >
> > Gump and ant can also be combined.
> >
> > In anycase, I would encourage you to use an existing framework to
> > describe w
I have about 9-10 different projects automated under Anthill OS nightly. I
set up a property sheet for each project where I call speicific targets out
their respective build.xml to generate war files, etc. I have not declared
any project dependencies as they're not needed at this point -- only
I've had this exact problem with Ant's FTP, SCP, and SSH; they're
agonizingly slower. So I spawn a new shell or use Exec to the system, much
faster.
Also I used to Ant-FTP from my Windows server to our Linux server which took
a long time. So instead, I set up an FTP client through IIS on the
If you plan to run nightly automated builds via a scheduler of some sort,
like Anthill or CruiseControl, they automatically (well, not really, you
have to check a box to send out emails) take care of it.
Or you can write your own ant.file; change the paths or prop names
accordingly. You can als
. There are few guides how to set it up:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
http://cfm.gs.washington.edu/security/ssh/client-pkauth/
or
http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=cygwin+openssh+key
- Alexey.
Res Pons wrote:
Thanks for the quick
want. Check in the
Ant documentation page for "Optional Tasks".
Cheers,
Jean-Philippe Daigle
On Thu, 30 Mar 2006, Andy Levy wrote:
On 3/30/06, Res Pons <[EMAIL PROTECTED]> wrote:
I FTP couple of files from a Linux RHEL 3.5 server to a Windows Domain and
my
certificate authentication. Also Linux
(not sure about RHEL 3.5 - maybe it is too old) can work with Windows shared
drives.
- Alexey.
Res Pons wrote:
OK the only remote relation my question has to do with this forum is that I
use Subversion and Ant and Linux shell scripting to do my builds.
OK the only remote relation my question has to do with this forum is that I
use Subversion and Ant and Linux shell scripting to do my builds. Please
someone either give me their expertise or point me to a forum to ask this
question.
I FTP couple of files from a Linux RHEL 3.5 server to a Wind
Since a war file is, more or less, a zip file...I say give the zip task a
try. I think it would work better for what you're trying to accomplish.
Original Message Follows
From: Torgeir Veimo <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: user@ant.apache.org
Subject: forced update w
OK, reposting this again, got no response. Also anyone in the Ant user
group using Anthill, have you see this error and what do you make of it? I
don't think my FSF respository is corrupted as this is only happening with
Anthill and all other users are having NO problem reproted.
Hi everyone
]
X-SAP: out
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
No actually it's a daily task (part of a build process)
So need to do it every time a build is made
Could you please elaborate on war task's update attribute???
Thanks !
Best regards,
Ja
If this is a one time deal, rather than resorting to Ant tasks, use
JDK's/bin/jar utility or command to accomplish this. Otherwise, if this is
to be done every time through your ant file, then you have to use the war
task's 'update' attribute to accomplish this.
Original Message Follows--
AIL PROTECTED]
X-OriginalArrivalTime: 17 Mar 2006 04:51:15.0770 (UTC)
FILETIME=[6C4361A0:01C6497E]
Is it because it should be instead of
?
--- Res Pons <[EMAIL PROTECTED]> wrote:
> Hi everyone!
>
> I'm making an antcall from the source target to its
> de
qKgBBSAZdNV+XOnVIsIyLEH7PUto3YBpGGvNzD9t++Sx8l0eL3WzMGFU1XFXOaoOxrFKbTtKZvNZx+rVjOOqjSYojQTxcUWMTlDmhoh+LHYakFutwH+LUwWOJEBYshwii3hf6eDizinazS4GB8WqhhTsq6i4dLXZLEGhUWI=
;
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 17 Mar 2006 03:47:18.0741 (UTC)
FILETIME=[7D373850:01
Hi everyone!
I'm making an antcall from the source target to its destination target.
Naturally the echo stmt in the newbuildnum target works but how do I get it
back to callbuildnumber target, the echo stmt in this target does not work?
__
Google and download Ant-Contrib to take advantage of the if-then-else
feature.
Original Message Follows
From: "Shweta Bodade" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: "Ant Users List"
Subject: And I want to input two args at a time through console
Date: Tue, 7 Mar 2006 04:08:
We have 3 or 4 projects under Subversion repository control. Originally I
had piggy backed along each project's build.xml file to package my Release
Builds, increment build numbers, check in files, and tag the repository. I
even took advantage of Ant-Contrib's if/then/else statement to determi
Great & thank you for your help. I already use the javasvn.jar files and
svn ant tasks to do this and I had checked these jar files into each project
locally to access them easier for repo transactions. However, I was asked to
create my own top level build project and not to pollute the develop
How do I pass arguments with quotation marks intact to the exec task? I am
having difficulty passing double quotes for comments to the svn ci -m
"comment" filename
Thank you.
if I understood your question correctly, You should create a separate FTP
target with very flexible properties and call it from other targets and pass
values to it. Each of the calling targets sends a different set of values
to the FTP target. In other words, don't hard code stuff in your FTP
75 matches
Mail list logo