Hi,
Maybe try putting your javafile elsewhere :
* in a src/ dir (so that javac destdir is not a subdirectory of srcdir,
which probably confuses javac)
* by respecting the package / directory structure : it should be in
my/class/ package hierarchy
My 2 cts
Nico
Jean-Rene David <[EMAIL PROTECTE
Hi,
Why not using XML entities, which is not specific to Ant but simply XML ?
Nico
"Kent Larsson" <[EMAIL PROTECTED]> wrote on 14/03/2008 11:28:03:
> Hi,
>
> In our Ant script to build Javadoc we have lots of 's inside
> our 's where the 's are duplicated into most of
> our 's. We would like t
Hi,
which version of Ant are you using ?
"Prior to Ant 1.7 only || has been supported as a nested
element, you can still use this directly without an ||
container."
Nico
nb123 wrote:
yes that is all in place, the jar files.
as i said the textual mails are going through but the attachments a
De: Mark Modrall <[EMAIL PROTECTED]>
>First, anyone know how to tell what the two compilers
> don'tlike about each other? And second, how does one get eclipse
> to run ant
> builds?
On our project, we simply build in two different directories:
- one for Eclipse builds
- one for A
Reorganize your code: put the inside not outside
ar wrote:
Hi all,
I loop on a fileset and use antcall to call a target for each file.
Processing file tasks can fail. I use the Ant-Contrib trycatch task to
make some alternative processing and customize error messages in my
catch section
> I'd like to access to a database, and, if it fails, create the
> database
> otherwise update it.
> To access the database, I intend to use a sql task. If the sql
> request
> fails, I want to call the create-database target. If it successes,
> I want
> to call the update-database target.
I use TAR+GZ to archieve, SCP to copy, SSH to execute commands remotely.
You can check:
http://cvs.sourceforge.net/viewcvs.py/jmol/Jmol-web/build-deploy.xml?view=markup
De: "Alexey N. Solofnenko" <[EMAIL PROTECTED]>
> Usually FTP is the worst option you have (at least SCP is secure).
> It is
>
I think there's a task in ant-contrib that should do just
what you are looking for
simon wrote:
it executes a shell scrip that start the webapp. then it uses ant to
test the webapp and after the test it should stop the webapp.
it works fine as long as the tests are working fine, but as so
Indeed an Eclipse question, but here is the answer:
- right click on build.xml and select Run As / Ant Build ... (select the
menu item with the ...). You then have a window where you configure your
run.
- you also have an Ant view
Messages d´origine
De: [EMAIL PROTECTED]
Date: vendredi,
I haven't followed the beginning of the discussion so I may be wrong
about what it is about ;)
(Sorry if I misunderstood the question)
If you need to copy only modified files from local host to a remote
host, you can use a mehod similar to what I have done for updating the
http://www.jmol.or
Clifton Craig wrote:
Stefan,
That sounds like exactly what I'm looking for. Only there's one big problem.
I'm behind an authenticating HTTP proxy and I can't seem to get my svn client
to get through it. Our in office proxy has traditionally caused me such
problems and I faced this about a
I forgot the link:
http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html
That's probably what you want
Nicolas Vervelle wrote:
Performance Monitor from Ant contrib ?
Bruno PRIN wrote:
Hello,
We use ant to build 130 modules.
The compilation ant building step take ov
Performance Monitor from Ant contrib ?
Bruno PRIN wrote:
Hello,
We use ant to build 130 modules.
The compilation ant building step take over 10 hours, we want to know
which step spend more time.
The project is launch several times, i know the time spend by each
launch of the project but I wan
Apparently, ant doesn't care of whatever you put in the commande line.
Just a stupid idea: try specifying the extension for the ant script
(ant.bat or ant.cmd)
ant.bat -debug clean
or
ant.cmd -debug clean
Safak Ökmen wrote:
Hi!
It is really strange. -debug doesn't work either.
Look at thi
You can try (or something like that).
I think it's part of ant-contrib.
Remo Liechti wrote:
Hi Gil
Is there no easy way to do it? :/ It's a bit overhead to write files for
this, isn't it ;)
If there is no other possibility I'll do it this way...
Thanks anyway,
Remo
-Original Mess
Otherwise, it's quite normal that it's not working well.
Extract from the official CVS documentation : "Tag names must start with
an uppercase or lowercase letter and can contain uppercase and lowercase
letters, digits, `-', and `_'."
Nicolas
Remo Liechti wrote:
No ideas? :(
-Ori
Have you tried outside Ant ?
Try in a command line (not WinCVS) and see if you have the same problem.
Remo Liechti wrote:
No ideas? :(
-Original Message-
From: Remo Liechti [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 26. Oktober 2005 09:56
To: user@ant.apache.org
Subject: CVS - g
Have you tried without the "." in your fileset pattern : something like
"**/*" ?
wolverine my wrote:
Hi!
I'm using Ant 1.6.5 and I have the following directories and files
test
+ war
| |
| + WEB-INF
| + index.jsp
|
+ build.xml
note that the WEB-INF directory is empty and when execu
from Ant Contrib ?
Otherwise, could you be more specific ?
Mikael Petterson (KI/EAB) wrote:
How can I replace the R11A02 with a new number?
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Hi,
A few more precisions could be helpful :
- what have you downloaded ?
- what are you using to untar it ? You need GNU tar if you have
downloaded .tar.gz, otherwise you can use jar for the .zip
- have you verified your download with pgp or md5 ?
[EMAIL PROTECTED] wrote:
Hello the list,
I
use a
different name each time. Try using @{file} as part of the property name
Sven Waibel wrote:
How can i insert it in my target?
Some ideas?
Thanks a lot!
Sven
Nicolas Vervelle wrote:
Maybe a to create yourself the destfile ?
Sven Waibel wrote:
ant-contrib helps in so many
[for] D:\test\build.xml:702: Problem creating zip:
D:\testing_today\D:\test\tt1.zip
I tried , but it doesn't work with or
Sven
Nicolas Vervelle wrote:
A solution that works: use task from ant-contrib.
Maybe there's an other solution using only ant core tasks, but I don&
A solution that works: use task from ant-contrib.
Maybe there's an other solution using only ant core tasks, but I don't
have the idea ;)
Sven Waibel wrote:
Hi,
i have several files i want to zip.
Situation:
d:\test\tt1.txt
d:\test\tt2.txt
d:\test\tt3.txt
d:\test\tt4.txt
d:\test\tt5.txt
ilable for ant via
Window|Preferences|Ant|Runtime|Global Entries
Gilbert
-Original Message-
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 9:06 AM
To: Ant Users List
Subject: Re: problem under Mac OS X + Eclipse
[EMAIL PROTECTED] wrote:
Let the
[EMAIL PROTECTED] wrote:
More interesting is the path, Ant has
PATH: ${env.PATH}
Ok, I aks the MacOSX/Eclipse user to test this and I will come back to
this list with the result.
Thanks for the help.
Nicolas
[EMAIL PROTECTED] wrote:
Let the MacOSX/Eclipse user print the path. I
[EMAIL PROTECTED] wrote:
Let the MacOSX/Eclipse user print the path. Is xgettext in that?
Maybe the path is not propagated.
Ok, so stupid question: how do I print the path ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
I will probably post this one on the Eclipse mailing list, but maybe
someone in the Ant list can help.
I am working on an open-source project (Jmol [1]).
The build is made with Ant but some of the Jmol developers / users use
it from Eclipse.
The build works correctly under Windows (and
Hi,
A few ideas (not tested, just ideas) :
- use a task for iterating through the fileset.
- try a to add a "+" before your filename, set addsourcefile to
false, and use
Hope this helps,
Nicolas
Alan Moss wrote:
I have an issue WRT the apply task. I need it to be much more flexible
than
t. Is httpd.apache.org a good idea? Monday
morning, what else can i say?
/frank
2005-09-26 kl. 10.00 skrev Nicolas Vervelle:
Euh ... why don't you post in the Apache mailing list ?
You're in the Ant mailing list ...
-
Euh ... why don't you post in the Apache mailing list ?
You're in the Ant mailing list ...
Frank Arensmeier wrote:
Hi.
I am new to Apache and I ran into a problem which I haven't found a
solution for yet. My server is Apache 1.3.33 on Mac OS X (the bundled
version). I am looking for a way to
Check ant-contrib, it's a library with several additional ant tasks, for
example
http://ant-contrib.sourceforge.net
Kai Hendry wrote:
I want to do something quite simple, but with Ant it seems really
difficult.
I want to check a property BAR exists. If it is not set, then set it
to anoth
Thanks for this solution :)
I am considering where I should put the version (in a Java file, a
property file or in the build.xml)
The pros and the cons:
1) in build.xml:
I don't like it because :
- two files are modified and need to be committed when the version is
changed (build.xml and java).
Hi,
In one of my Java source file, I have a line like this:
public final static String version = "XX.YY.ZZ";
I'd like to extract the XX.YY.ZZ from the Ant build to name the
resulting jar file with it : Jmol.XX.YY.ZZ.jar
Can someone help me with how to extract the string from the file ?
Thank
ate a Task which swallows errors
generically, regardless of the type of task. Can it be built?
I didn't try it but when I was looking for a solution to my problem I
saw that ant-contrib has a tak.
They are speaking about catching BuildException, not sure if it would
catch other.
Fro
, it really seems to be a bug in failifexecutionfails="false" for
the task. It doesn't work, at least not in the same way of the
task.
Nicolas
De: Nicolas Vervelle <[EMAIL PROTECTED]>
> Hi,
>
> I want to run an executable during the build only if the
> exec
Hi,
I want to run an executable during the build only if the executable is
available.
How can I prevent the build from failing if the executable is not here ?
I tried the failifexecutionfails attribute :
I thought that
Hi,
I would say that it depends on the tasks you are using. A few examples :
- for , you can use to check dependency
- for , by default only newer files are copied
You can always use , if/unless in and other tools to
do your own up to date tests.
Which tasks are you considering to use
Eduardo Yáñez Parareda wrote:
Hi all, Which is the value I have to assign to 'debug' option of javac task?
Ant documentation of Core tasks (http://ant.apache.org/manual/index.html) says
that debug may be assigned to 'true', but in the examples it is
assigned to 'on'.
Who says the truth?
Bo
Hi,
Why don't you simply delete your .class files before the second call to
javac ?
Richard Gaywood wrote:
Hi list!
I'm modifiying a slightly complex existing[1] build script for our J2EE web
services app. I currently have two compile targets which compile class files
with or without Emma
Ana Gaspar Martínez wrote:
Is there any mode of refresh the navigation view from the build.xml
file?? I create folders and files, and there are not visible under i
refresh the navigation view...
Do you mean under Eclipse ?
If so, just select "Run / Ant build ..." once (select the one with
Ana Gaspar Martínez wrote:
Is there any mode of refresh the navigation view from the build.xml
file?? I create folders and files, and there are not visible under i
refresh the navigation view...
What navigation view ?
Do you mean under Eclipse ?
If so, just select "Run / Ant build ..." on
Thanks a lot, I finally found it :)
Works great
De: Matt Benson <[EMAIL PROTECTED]>
> --- Nicolas Vervelle <[EMAIL PROTECTED]>
> wrote:
>
> > I want to compare two files (see if they have the
> > same contents,
> > timestamp can be different) and th
Hi,
there's probably a simple way to do it, but I don't know how.
I want to compare two files (see if they have the same contents,
timestamp can be different) and then if they differ I want to copy an
other file.
Can someone help me ?
Thanks in advance,
Nicolas
PS: If you need more infos, he
Hi,
I want to get the file that is see when I enter the following address
in my browser :
http://www.stolaf.edu/people/hansonr/jmol/docs/?xml
I tried the task but it doesn't download what I need : it
download the javascript that is used to generate the XML file, not the
XML file itself.
Is t
Here is an example of executing several commands with :
password="${ssh.password}" trust="yes" failonerror="true" command="cd
/home/groups/j/jm/jmol/htdocs/; tar zxvf upload.tgz; rm upload.tgz">
Complete build file can be found at:
http://cvs.sourceforge.net/viewcvs.py/jmol/Jmol-web/build-de
Hi,
you can check the "flatten" attribute of , or also the flatten mapper.
Nicolas
Sándor Tamás wrote:
Hi Ant-users!
I've checked the Directory-based Tasks page and googled the web to
find any solution to my problem, without success.
E.g. I have a dir tree like this:
/lib
|- jarlibname1
Hello,
Brian Kuhn wrote:
Has anyone gotten the SCP task to work correctly? I need to copy a
single file from a server to my local machine using SSH. Does anyone
have a working example?
I am using SCP to update a website: I scp a .tgz file of the
modifications and then extract it with sshexe
[EMAIL PROTECTED] wrote:
Hi All,
While you use Copy task it will change the timestamp of that
file, i.e. if "old.txt" file was created on July 12, 2000 when you copy
this file on Aug 12, 2005 to certain location Copy task will change its
timestamp(or modified date) to Aug 12, 2005, ho
.
It's working fine now, thanks for the help.
I still don't know why it's not working anymore with direct scp but I
will now work with tar + gzip + scp :)
Nicolas
-Rob A
-Original Message-
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 29, 2
Hi,
check to set a property, and use unless in the target ;)
Hope this helps,
Nicolas
Alexey Kakunin wrote:
Hello all!
I'm quite new in ant, actuallyI'm migrating from make.
Seems it is really great tool, but I have some (probably very stupid)
question.
For example, I have a target for c
Hi,
Anderson, Rob (Global Trade) wrote:
What version of SSH server is on the remote end ? I seem to remember this error from something, but I don't think I saw it using the scp Ant task. It looks like the fileset may be sending directories, and not just files. I would suggest creating a zip or t
No one ? snif :'(
Nicolas Vervelle wrote:
Hi,
I have a build file to update a website from my own pc using task.
It was working perfectly until more than a week ago.
I now have an error message when it tries to upload a file in a
subdirectory :
"server indicated an error: scp
Rebhan, Gilbert wrote:
...
where the copypart works fine, but the move task
copies the folder containing the jars also, f.e. =
/jarfolder1
a.jar
/jarfolder2
b.jar
i want only the jars out of my fileset in the ./jars folder,
but the two jarfolder are copied also.
Have you tri
Nicolas Vervelle wrote:
Hi,
I have a build file to update a website from my own pc using task.
It was working perfectly until more than a week ago.
I now have an error message when it tries to upload a file in a
subdirectory :
"server indicated an error: scp: protocol error: rec
Hi,
I have a build file to update a website from my own pc using task.
It was working perfectly until more than a week ago.
I now have an error message when it tries to upload a file in a
subdirectory :
"server indicated an error: scp: protocol error: received directory
without -r"
The websi
Hi,
In my build.xml, I am using the task which requires jsch.jar in
the classpath.
I have put jsch.jar in the same directory as build.xml.
I would like Ant to add it to its classpath inside build.xml, is it
possible ?
I don't want to use the classic solutions to add a .jar in Ant
classpath :
th
I would use with your preferred scripting language. There
are several scripting languages written in Java (Jython, Groovy,
BeanShell,...) and they are as portable as Java itself.
- Alexey.
Nicolas Vervelle wrote:
I didn't have much success with my last question :(
I will try wi
I didn't have much success with my last question :(
I will try with only a small problem then :
How to expand a path (${build.dir}) to match what I get with
and the reverse modification?
For example : E:\Java\Jmol-web -> E\:\\Java\\Jmol-web -> E:\Java\Jmol-
web
It must be portable (Windows, Lin
Hi,
To optimize the upload of a lot of files on a website, I am using
to upload only the modified files. creates a
property file like this :
#Thu Apr 28 20:00:01 CEST 2005
E\:\\Java\\Jmol-
web\\build\\html\\fah\\projects\\p934.xyz.gz=81545359e168268a133071d58e7
bcfa7
E\:\\Java\\Jmol-
web\\bui
my former post)
Thanks for the help!
wbr,
Roman
-Ursprüngliche Nachricht-
Von: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. April 2005 14:10
An: Ant Users List
Betreff: Re: Copiing newer files to a directory [was: using
file names]
Hi,
Maybe you could try u
Hi,
Maybe you could try using tasks from ant-contrib project at sourceforge.
I was thinking of something like:
Huditsch Roman wrote:
Hi,
Thanks for the snippet!
I found out that you can reset a property.
What I want to do is quite simple (although unachieva
H, David
-Original Message-
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 24, 2005 23:36
To: user@ant.apache.org
Subject: replaceregexp on multiple lines
Hi,
I have a file containing several times something like (xx is
different) :
...
For some of them (depending o
Hi,
I have a file containing several times something like (xx is
different) :
...
For some of them (depending on "xx"), I want to keep only the
...<.a> part.
For the others, I wan to completely remove them.
I tried this :
but the problem if pattern is first matched with the text between
Rick Genter wrote:
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 24, 2005 4:51 AM
To: user@ant.apache.org
Subject: Sorting a property file ?
Hi,
I have a property file that is generated by in a .
I would like to sort its content so that the files in it are sorted by
Ok, thanks
but I want to sort the property file and save it. Is it possible ?
Nicolas
Ivan Ivanov wrote:
Nicolas,
Ant-Contrib has task[1] which can sort
properties files.
HTH Ivan
[1]http://ant-contrib.sourceforge.net/tasks/tasks/sortlist.html
--- Nicolas Vervelle <[EMAIL PROTECTED]>
wrote:
Hi,
I have a property file that is generated by in a .
I would like to sort its content so that the files in it are sorted by
directory.
Is it possible ?
Nicolas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
a/for/sub
[echo] dir is /home/preilly/learning/a/for/sub/a
[echo] dir is /home/preilly/learning/a/for/sub/b
[echo] dir is /home/preilly/learning/a/for/sub/c
Peter
Nicolas Vervelle wrote:
I can see how to use this tasks for 'one' subdirectory, but is there
a task that will p
Nachricht-
Von: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Gesendet am: Mittwoch, 23. März 2005 12:05
An: user@ant.apache.org
Betreff: Executing a task in each subdirectory
Hi,
I have a directory tree where each directory can contains
files named in
the form index.*.html. (* represents the
Hi,
I have a directory tree where each directory can contains files named in
the form index.*.html. (* represents the code for a language: en, fr, ...)
Each index.*.html contains lines in the form <*>text.
For each directory, I would like to :
- remove the <*>text in each file if index.*.html is a
> I am trying to create a symbolic link using the target below;
>
>
>
>
>
>
>
>
Try :
Hope it works
Nicolas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
> On Sun, 30 Jan 2005, Nicolas Vervelle <[EMAIL PROTECTED]>
> wrote:
>
> > Is there a way to upload only newer files ?
>
> Use a selector.
Thanks, works great :)
-
IHMO, even if you find a task that copy from a remote server to an other
one, the task will need to retrieve the files from the first server to copy
them to the second server.
I really don't see how you could do a direct copy without executing a
process on one of the server.
- Original Messa
- Original Message -
From: "Rhino" <[EMAIL PROTECTED]>
> Have you tried using the sshexec task instead of scp? I've never tried
> putting a 'copy' (or 'cp') in the command parameter but I assume it will
> work. Then perhaps, you can copy only the desired files to the other
> machine.
AFA
Hello,
I need to upload files to a server that accepts only secured connections
(scp, sftp).
I'm currently using the scp ant task to do the job, but this task lacks the
ability to upload only the newer files so it takes me a lot of time (30 mns
now but increasing because more files are added) to
74 matches
Mail list logo