I'm using Ant to build some Java projects.
In some, I've got a lib/ directory, which contains external dependencies, in the form on JAR files.
During the build, I create a bundled jar, that contains the project's code, alongside the dependencies, by adding to the bundle jar file a zipfileset for each of the jars in the lib/ directory.
...
I am working on a project in netbeans that requires the running project to have root privileges.
I would like it so that each time I push "Run Project" (F6) my project is run as root, so with the equivalent of "gksudo javac Main", as it is has a GUI.
One option is to start netbeans with root privileges, easily done by editing the short...
How do I get the location of rt.jar in my Ant script with NetBeans without editing my project.properties? ${java.home} is returning the location of the jre folder and not the jdk folder.
I know that I could easily add a value to project.properties but I don't want to. I also know that I could easily just modify the path whenever I switc...
Hi Experts,
Can anyone tell me how to write Ant script (if i want to create my own) mean is there any kind of tutorial available?
Eclipse/Netbeans provide Ant script automatically but can it be possible to edit and customize them as per requirement? If yes then how to do this and how to customize the workspace which is provided by IDE...
I want to do something like the following
<target name="complex-conditional">
<if>
<exec command= "python some-python-script-that-returns-true-or-false-strings-to-stout.py/>
<then>
<echo message="I did sometheing" />
</then>
<else>
<echo message="I did something else" />
</else>
</if>
</target>
How ...
Is there a well-established way to share Ant targets between projects? I have a solution currently, but it's a bit inelegant. Here's what I'm doing so far.
I've got a file called ivy-tasks.xml hosted on a server on our network. This file contains, among other targets, boilerplate tasks for managing project dependencies with Ivy. For exa...
Hi All
I have an Ant build that has this line in it:
WORKSPACE.dir = ${basedir}/../
I then have:
CORE_PROJECT.dir= ${WORKSPACE.dir}/UUI_Core
which means that I end up with paths like this:
C:\dev\workspaces\RTC\UUI_Core_ANT/..//UUI_Core
This works fine in almost all cases but I am trying to build a list of classes to be used in a ...
I keep my java files in non-standard places, e.g. class p1.p2.cl
resides in file src/p2/cl.java, not src/p1/p2/cl.java.
How to code javac ant task so that unmodified files would not recompile each time?
thanks,
Alexei
...
I am working with the new cfbuilder and using ANT to push my code to my dev server. One issue that keeps cropping up is when I make changes to my beans.xml file my ant build throws an exception on my beans.xml file.
This is the exception that I get:
BUILD FAILED
C:\workingcopies\bpmMag\config\beans.xml:3: Unexpected element "{}beans" {...
Please help, I'm going slightly mad!!
I'm using Eclipse-generated antfiles to build a project with dependencies, one of which has its own buildfile in a directory which is a sibling to the direct ancestor of the project I'm building. E.g. if my directory is "/base/modules/clinicalcontext", the directory of one of the dependencies is sim...
I'm using sphinx for some software documentation because it seems to work really well... but my project is a java project and I would like to run sphinx from an ant script.
Has anyone written a custom ant task to call sphinx?
...
I have a number of file/executable locations that are likely to be different depending on which computer I am running them on, and I would like to abstract these out through ant properties somehow. What's the best way to do this? Is there a system-wide ant setup script that gets called? Or can I make such a script?
...
I have recently installed Eclipse Galileo with the PHP Developers Tools. I plan to install the Flash Builder 4 Plug-in to do ActionScript development as well.
I want to use Eclipse to both create an ant build script and execute it to compile ActionScript docs from an ActionScript 3 code library.
The problem is that when I try to run a...
I am trying to write an ant script which builds our project and will save the new build in a dist folder which gets committed to svn. As the name of the file changes for each build I need to delete all the old files in the dist folder (without knowing the names).
For this I was using the following code:
<exec executable="svn" outputpro...
I use python to call ant, I want to get the return code of the ant for detect ant error.
for example, in cmd.exe,
C:\Documents and Settings\Administrator>ant sfsf
Buildfile: build.xml does not exist!
Build failed
C:\Documents and Settings\Administrator>echo %ERRORLEVEL%
1
but in python:
>>> a = subprocess.Popen("ant hahah",shell=Tr...
I have a java junit test that passes when run alone on a development machine. We also have a hudson job which runs all the tests, invoked via ant, on a Mac OS X 10.4 node with Java 1.5. The test was passing in the hudson build until recently but now (with no related code changes) one test fails everytime with the following error:
Error ...
We are using cruisecontrol to build our projects, which are ant files. I'm now checking to use Team System (Microsoft) in the future. Is it possible to use ant scripts in Team System? We have a lot of Flex development (and .NET development) and the scripts to build the Flex side would need to be integrated in Team System.
...
I'm using Spring and struts and have the following entry in 'C:/source/webapp/WebContent/META-INF/context.xml' with tokens like 'jdbc.username, jdbc.pwd, jdbc.server, jdbc.port and jdbc.databasename'.
<Context cachingAllowed="false" useHttpOnly="true">
<Resource name="jdbc/xxx" auth="Container" type="javax.sql.DataSource"
...
Is there a Scorm 1.2 player that can be launched from the command line?
I'm looking to integrate the player into a ant script.
...
I have been playing with the basic Ivy Tutorial and have gradually extended to a state where I now have a seprate ivy.xml defining my dependancies and with the ivy jar inside the apache ant installation.
I have also managed to define a shared repository to stop ivy popping off to an external repository. This has been done by defining pr...