Hi folks,
In another question - http://stackoverflow.com/questions/3530181/getting-directory-listing-from-svn-for-use-in-ant-dropdown/3546043#3546043
I asked about how I can connect SVN up to my ANT scripts directly. The answer I got was really good and follows the lines of exporting a directory listing from SVN as XML and then using X...
Suppose I have a folder with many files. I want to have a .gz version of each file (not a tar.gz with all files). How do I do that with Ant? Ant's doesn't accept a list of files, only operates on one. So how do I repeat this for all files, with a certain extension, in a directory?
...
I'm trying to get Ant to compile only parts of my project depending on a property (module) I set in the properties file. This is my first "real" interaction with ant so please bear with me :).
I don't want to create multiple targets because the only thing that differs between modules in the build process is the number of classes that ar...
Hi,
I am using JAXB on a project. the attraction of JAXB is that it is bundled with the JDK, I have been to use xjc.exe on the command line to generate the .java files from a schema. I can't seem to find the JAXB ant task, sure there is a download at https://jaxb.dev.java.net however i want to use the JAXB that is bundled into the JDK i...
Anyone can show me a pointer about how to write ant rules (build.xml) for creating a .jar file from a .proto file?
Basically, I have write a legitimate example.proto and I can use the command line to compiled output java file: Struct.java internalStruct.java.
What I want is to write an ant rule to automate the above process. Any exist...
I'm using Clover 2.5 and I've got a target that will package up the binary files. However, at the moment, it seems that the Clover instrumented classes are being generated in the same output directory as the un-instrumented classes that I wish to package up in a jar.
How do I go about creating a jar so that the instrumented classes are...
The Apache Ant javadoc target allows a <link> attribute to link to external javadocs. I would like these javadocs to open in a new window (like target="_blank"), but the link attribute doesn't accept a <target> attribute that would allow me to do something like this. Is there some other way to do this apart from manually editing the link...
I'm trying to do the following. I would like to use subant to resolve all ivy dependencies and then if not resolved do compile for only the unresolved dependencies, but what I'm getting is once ivy fails to resolve it goes through all dependent directories and does a publish without doing resolve first. Please help.
Following is the t...
Is there an implementation of the rpmbuild that is written in Java?
Alas, the build server is running on Windows and yet the build process
for a particular Java-based application needs to generate an rpm via
which to be able to install it on RedHat Linux servers.
The build server (Hudson) needs to stay on Windows OS as it also runs
...
Can anyone tell me why I am getting this error message
Buildfile: C:\Users\Tara\workspace\Testing\build.xml
doc:
[delete] Deleting directory C:\Users\Tara\workspace\Testing\doc
[mkdir] Created dir: C:\Users\Tara\workspace\Testing\doc
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
BUILD FAILED
C:\Users\Tara\works...
I have a custom annotation and it's processor & processorFactory. How do I configure my Ant build file such that:
The annotation processor is applied on annotated classes and generates source files inside "gen" folder
The generated source files(from annotation processing) could be used by other source files in project.
...
I have gone through the Android guide for other IDEs, and I've got the basic build and install working fine using ant and a simple Emacs compile command. I'm aware of some of the existing tools for developing Java and XML in Emacs. I've also seen the EmacsWiki page recommending two Emacs packages, EmDroid and android-mode
I'd like to ...
Is there a way to check in ant if an internet connection is available.
...
Hi
I have a basic C# project, but I want to kick off an ANT build (which compiles some very basic java code) and also fires a junit test. How can I find out from Team Build 2010 (TFS 2010 basically), if the junit test fails? If it does, I will fail the TFS build.
I have the build extensions and I am using TFS 2010. However, the documen...
Hi,
I am following step by step for installation of RED5 in Ubuntu 9.04.
while i am giving ant command, it hangs at
[ivy:resolve] :: resolving dependencies :: red5#server;working@satya-vbox4red5
[ivy:resolve] confs: [java6]
in verbose mode, i saw that it is failing while searching for dependencies...
verbose output can be found at h...
Hi @ll
I am having a problem with setting up an Ant Builder for my Eclipse projects.
I do have several 3rd party libs configured as user libraries within Eclipse. Those libraries are added to the build path of my projects and everything is working fine.
My problem is, that if I want to use the Ant Builder from Eclipse, I will have to ...
I'm writing an Ant Task:
public class MyTask extends Task {
public void execute() {
....
}
}
Now I'm wondering whether it is possible for me to call a target that exists in another known xml file from within the above execute() method?
Something like:
public void execute() {
AntCaller.call("anotherBuildFile.xml"...
Hi all,
I have my main build.xml which imports a common-build.xml from a shared directory. The common-build.xml imports a build.properties which is located in the same directory. At the moment I have to use a common.dir property which is set by the calling build.xml. If I just do
<property file="build.properties"/>
Then it load...
Is it possible to create the nested element for any ant task. For e.g.
<copy todir="../backup/dir">
<fileset dir="src_dir"/>
<filterset>
<filter token="TITLE" value="Foo Bar"/>
</filterset>
</copy>
Here for the task copy we are having nested element as filterset. Now, i would like to create my own nested element en...
We have around 80 jars in our applications. All are created using javac task and jar task in ant.
I would like to introduce findbug checks. One option was to create single findbug check ant project. This has all jars , all source paths defined in it. This works -- require lot of space. Analysis of result too not very straight forward. ...