I've found similar questions to this problem but they don't really satisfy my situation. My code is apart of a single "project" in an SVN repository. The "project" includes not just Java code, but also C/C++/Cuda. I simply want to check the entire repository out but only work on the Java code (that runs from an Ant build).
I'm lookin...
I'm building a Java application (using Ant with build.xml and build.property files). Now I'd like to be able to create a different "debug" build which prints several diagnostic messages to System.err. This is achieved by something like this (simplified):
private static final boolean DEBUG = false;
public static void debug (String msg) ...
Hi,
I need to keep a control value (possibly inside a file), in order to decide whether to execute a task or not.
I'm coming from here: http://stackoverflow.com/questions/2239236/ant-how-can-i-subtract-two-properties-containing-timestamps
What I want to do, is to check if the control value is equal to a period (mmYY). If it is equal, ...
I Have a web service implementation class in java and I use wsgen to generate the service end point classes. There is a public method in my SEI that I want to exclude from the web-service interface. It seems that the annotation
@WebMethod (exclude=true)
is meant to do that but it does not seem to work with the wsgen ant task.
...
I'm using MyEclipse 8.0 to develop a Spring Batch project. Recently, I added MySQL to the database explorer perspective and now when I try to do "mvn clean" on my project, it fails because it can't delete the mysql-connector-java-5.1.6.jar from the target lib folder. I've tried manually deleting this jar, but I get that popup that says...
Hello. I'm having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja jar, I now get a NoClassDefFoundError when I try to run the app.
Here's the message:
02-11 21:45:26.154: ERROR/AndroidRuntime(3654): java.lang.NoClassDefFoundEr...
I want to print the execution time taken for each individual ANT target and its dependent targets.
<target name="target1" depends="target2, target3">
....
</target>
When run should show following output
Target 2 - x seconds
Target 3 - y seconds
Target 1 - z seconds
Any suggestions on how to achieve this?
...
Updated to (hopefully) clarify: If a goal is defined to run during a given phase, is it possible to run the individual goal without running thru all phases. In other words would it be possible to run the antrun:run goal (which is defined as part of the install phase below) without getting dependencies, generate-resources, compiling, test...
Hiya.
after every save i need to right click on the project in the project browser and click on build. is there a way to configure netbeans to auto build the project when i save a file in the project?
...
I'm trying to figure out how the DITA Open Toolkit performs DITA to XHTML conversions, and it's difficult since the process is managed by dozens of ant targets spread over multiple ant files.
I need a tool that can provide a visualization of the execution flow plus property dependencies of an ant invocation. VizAnt and Grand only graph...
I never quite understood this, since the name attribute appears to support spaces, but every example uses the harder to read period to name targets.
Why do this:
<target name="some.target.name">
<!-- target child nodes -->
</target>
When you can do this:
<target name="Some Target Name">
<!-- target child nodes -->
</target>
Was th...
I've looked at a bunch of different examples, and tried several variations, but can't seem to get this working correctly. It also appears that you can't exclude an entire directory with javac, but only files, which I suppose means you can't specify a package? Here is what I have:
<javac srcdir="src" destdir="WEB-INF/classes" excludes="p...
Using ant, I would like to clean a directory from all files having the extension '.dcu' for which a file exists that has the same basename, but the extension '.pas'.
(I cannot simply delete all '.dcu' files because some of them cannot be restored by compiling from source, because there is no corresponding '.pas' file.)
How can this be ...
Hi all,
I have a complex gradle script that wraps up a load of functionality around building and deploying a number of netbeans projects to a number of environments.
The script works very well, but in essence it is all configured through half a dozen maps holding project and environment information.
I want to abstract the tasks away i...
Hello
Step two of "The Joel Test: 12 Steps to Better Code" states "Can you make a build in one step?". My answer to this is currently no. My application is structured as follows:
+
+-MyApp // this is just a vanilla Java Application
+-MyWebApp // this Dynamic Java Web Application (deployed Tomcat and launches
// a thread con...
Hi all
I installed H2 on a Windows PC.
I would start H2 from ant so that it can be automatically started/stopped during a test suite execution.
How can I do this with ant?
Have I to call .bat in ./service directory or what?
I can't find any H2-ant-tasks library.
Thanks
...
Hello..
I have to write an Nant script that will accept 2 parameters on the command line. The first is just an option and has the following format: -myOption. The second one needs to be wrapped in quotes: "some value with space".
e.g. -myOption "this value"
I am new to Nant so I have unsuccessful so far and don't know how to output t...
Hey everyone...
I have the following in a build script:
<record action="Start" autoflush="true" name="${nant.log}"/>
The name value is valid. I get the following error message:
Invalid element <record>.Unknown task or datatype.
After looking at the documentation I am not sure why this is causing an error.
Any ideas?
...
I'm writing an Ant macrodef in an antlib file to be distributed in a Jar. As part of that macrodef, I'm copying the contents of one file to a temporary file and doing some filtering during the copy (replacing tokens and such).
Now, this is all good and fine if the macrodef is referencing the file to copy on the file system. However, thi...
I have a ant javac task which is supposed to run some annotation processor. It works fine when run from a batch file, but fails with
Error running javac.exe compiler
when started from eclipse. Normal compiling javac tasks work just fine.
I guess ant started from eclipse uses some different compiler?
How do I change it to the normal c...