I'd like to find a simple, non-trivial Java project that is expressed in terms of Ant + Ivy, Maven, Gant, and Gradle. I'm not interested in each tool's varied sample demos.
Where can I find such an example, for reference?
...
I've got a build script that builds multiple components and jars them up. I currently build a path like so:
<path id="project.class.basepath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${path.to.base}/components">
<include name="*/build/lib/*.jar" />
</fileset>
</path>
...
Hi
I am using an ant script to get the contents of a directory using the following:
<ac:foreach target="process-test" param="the_file" delimiter=",">
<path>
<fileset dir="${test.suite.url}">
<include name="**/*.html"/>
<exclude name="**/cases/"/>
</fileset>
</...
I am running Junit tests from Maven. The ant script has
<junit failureproperty="failproperty" errorproperty="errorproperty">
<classpath refid="classpath" />
<test name="${unit-test-suite}" />
<formatter type="brief" usefile="false" />
</junit>
<echo> --...
I wrote an app that uses XPath to query some XML config files. When I run it in eclipse, it works just fine. I also wrote an ant target that runs the application. However, The app gives me a runtime exception when running it from ant. The exception says: XPathFactory#newInstance failed to create an XPathFactory for the default object m...
Hello everyone,
I am currently developing a "debugger" java application that uses JDI to connect to an already running "target" java application. Is there anyway to have ant launch my target application then launch my "debugger" afterwards while the first application is still running?
Yes I know that I can develop the JDI app to launch...
Hello,
I am trying to run a java task from ant. I am trying to run the "org.apache.tools.ant.launch.Launcher" class. I keep on getting the "NoClassDefFoundError" without any class name being specified. I am also getting a "ClassNotFoundException" along with that displaying a message "Could not find the main class: . Program will exit". ...
Hi,
My program needs to scan a directory of files and process those newly modified. I thought I could do something as in a build.xml
mytask
fileset
modified
/
/
But I want to do it programmatically. Any tips?
Thanks
Bing
...
I am working on an ANT target for running tests, but I need to have the app server up and running before the tests start, so I'm using the "waitFor" task to ping a URL until it gets a response. This works great except that I need to not only make sure the URL is simply accessible, but also check that a particular status string is present...
Hi,
I have written an ANT script which deployes an application to my local development JEE enviroment. I need the same function to deploy it to the productive enviroment.
I often only want to deploy to the development server and rarely to the productive one. I'm using Eclipse IDE. Depending on the way ANT is used, it could happen, tha...
I started out attempting to do this with the Length ant task, but realized that that would be done before the ear is packaged. Packaging the ear, then checking the file size, and then placing it in the ear would effect the size of the ear.
Is there a way to get the ear's size programmatically at run-time? Or perhaps an MBean that woul...
My question is similar to avoiding-re-building-prerequisites-in-ant, except that my need doesn't involve created objects, but processes invoked, so the solutions discussed there won't work for me. At least I think so - but I'm new to ant.
My situation is that I'm writing a set of ant targets, and I need the lets-call-it setup target to ...
how do i set the Main-Class attribute of my jar in ant?
...
Hello!
when i delete a souce file Test.java, rebuild the source file use javac task, the class file Test.class wont be remove automatically.
is there any workaround?
thanks in advanced.
...
Hi,
I have the following problem:
I'm using the wsimport ant task to create a webservice client (for salesforce.com).
Everything's working fine but the generated classes all use this strange JAXBElement class for all bean properties.
Eg:
public void setLastName(JAXBElement<String> value) {
this.lastName = ((JAXBElement<String> ) ...
On linux something like:
<target name="runDo">
<exec executable="gnome-terminal" spawn="true">
<arg line="-t 'Title' --geometry=120x80 -e '/script/path/bin/do.sh'"/>
</exec>
</target>
Works fine.
I've tried installing xterm, gnome-terminal and rxvt via macports and running them similarly with no results as well as ...
I am running checkstyle checks from an ant task. I have configured both properly and can run the task without any problems.
But I have another project/folder with additional source files (lets call them third party sources) which are referenced from within my source files (primary source). I want checkstyle to only check the primary sou...
Ant task GET will download an http request.
How can i visit a webpage and throw the response to the current logger, and maybe take some decition according to the response?
Thanks in advance
Edit:
It worked out like:
<target name="genera">
<exec executable="curl" outputproperty="webProcess" errorproperty="error">
<ar...
I am trying to get ant to run my jsdoc toolkit. After I create my build.xml from the examples at the site, I end up with this:
<taskdef name="jsdoctoolkit" classname="uk.co.darrenhurley.ant.tasks.JsDocToolkit" classpath="/jsdoc/jsrun.jar;/jsdoc/java/classes/js.jar"/>
As I run #ant I get the following error:
/pathto/jsdoc_toolkit-2...
I am using a different plugin (ant4eclipse) to jar my files. What is the best way to avoid the maven-jar plugin from executing?
I tried to remove the <plugin>maven-jar-plugin</plugin>
I tried to <exclude> ** / * < / exclude>
I tried to <skip>true</skip>
None worked
...