Hi all, my question relates to the Ant libs and source included with various Eclipse distributions. e.g.
eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145 and
eclipse/plugins/org.apache.ant.source_1.7.1.v20090120-1145.jar
How can I associate these together? What I'd like to do is set a breakpoint in the Ant Javac task, so I can confi...
I am using an OSGi framework to do my development, and my develop machine's jar lib path is different from my production machine's.
How can a write my build.xml so that it can make my development easy yet I can ship the software to the production without too much headache? (note: the production people do not know ant and etc very much)...
Hi,
I am using ant for building my projects, This project needs more memory then default JVM size, So I have added following line of code in the build.xml file.
<!-- setting up this value as project need this much memory to compile.-->
<property environment="env" />
<property name="env.ANT_OPTS" value="-Xms1024m -Xmx204888m" />
But ...
Hi there,
I am doing some ANT scripts just now and I am looking to copy a directory from one location to the other. However, after looking at "copy" and "copyDir" (which is deprecated) it seems that ANT (by default) only copies the content of one location to another, not the actual directory (and everything in it).
So, as an example I...
Starting with Ant 1.7, the TarFileSet is available which seems to allow file permission modifications in the tar archive.
Does this feature work platform-independent, so that I can for example create a tar file on Windows and set execution permissions for script files in this archive which will have this flag if the file is unpacked on ...
When I press "build project" it NetBeans builds, as far as I could find, separate class files. How can I set it to build them into a jar file? Even better it'd be if I can build several applications (all separately runnable from command line) from one project.
I code Scala 2.8.
...
Hi, i would like to replace tokens in source files with Ant:
some test ${foo} other text ...
Tokens are contained in a properties file eg.:
foo=1
Actually this is easy if tokens in source files were like '@@foo@@' or 'foo' but i'm not able to replace whole token : ${foo}
I've succeed years ago but this time i've failed ...
Thanks...
Hi!
I want to start and stop a tomcat server on a remote windows machine. I want to be able to do this from an ant script (so our build server can do this).
I wasn't able to get this solved using sc.exe, because there is no way to pass username and password to the remote machine.
Instead I'm using psexec to run commands on the remote ...
Hello everyone,
I have an existing j2ee project which is very big and old. Therefore, my current building process is to open eclipse, file/export, and clic on War archive.
While our company turn over is as fast as new build is needed, we have to create an automated process. However, I'm searching the fastest way to automate building. I...
Hello,
i want to execute the following ant command but using java instead of the command line:
-Desb.netbeans.home=PATH_TO_YOUR_NETBEANS
My current java code:
Project p = new Project();
p.setUserProperty("ant.file", buildFile.getAbsolutePath());
DefaultLogger consoleLogger = new DefaultLogger();
consoleLogger.setErrorPrintStream...
Hi there,
I've created the following XSL stylesheet which takes an XML packet ( given to me from SVN ) and converts all the "entry" nodes, which don't include the text "archive", into a comma-separated list for my ANT script. An example XML file looks like this....
<?xml version="1.0"?>
<lists>
<list path="https://mydomain.com/branches...
I'm using the Hello World with Ant tutorial from the Ant manual to learn about Ant.
The last part of the tutorial involves adding JUnit tests to the project.
I've got everything working as described in the tutorial and am now going on to make some minor changes.
One of the changes I would like to make is to run the tests during a typi...
I am trying to write an Ant <scriptfilter...> to change occurrences of the string "__LINE__" to the correct line number in Java source files.
Does anyone have an example of using JavaScript (or some other embedded scripting language) to do this? In particular, how do I create a "global" variable that is initialized to 1 when the script ...
I have to automate quite a lot in my current project. For this, I use ANT as it provides quite some commands. However, I have to use ant-contrib as I need for loops and other additional parts.
I use a model driven approach and have to automate the whole chain containing several models until the final model is created.
Is there an alt...
I have been using this exact Build.xml file. I had problems in the beginning using the junit task with it, but I figured out those problems a couple months ago.
Recently I got the all to common error message when I ran my build file with the test task.
test:
[junit] Testsuite: com.mmz.mvc.test.AgentDAOTest
[junit] Tests run: 1, Failure...
I have created an Ant task, wherein i would like to have an property array? First of all, is it possible? Does ant allows us to have a property array?
public class MyTask extends Task {
private String tokens[] = null;
public void setTokens(String[] _tokens) {
//...
}
public void execute() {
// iterator over ...
Is it possible to create ant build file from java code using ant API?
Thank you for your help.
...
I have written an ant task (bnd) that needs to indicate failure. The only way to indicate failure that I found is to throw a BuildException/ExitStatusException. However, I do not want a stack trace because it just takes up unnecessary screen space. Any idea how to achieve this?
...
I have created a custom Ant task as per one of my previous posts which calls an existing target in another xml file.
It seems to be doing what I want in terms of calling the build xml that I want, however, it now throws a very curious error:
build.xml:4: Problem: failed to create task or type import
Cause: The name is undefined.
Action...
I'm trying to pull out the file through ftp within ant, it get hung with after printing "getting files", so I enabled debug in ant and my output is
[root@LODIVM11SE001 net]# ant -d -f ftp_t.xml
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: ftp_t.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: /root/...