In this line, path of .properties file will be assumed by ant as "${outputDir}/h/a/A/I/S/src/Serv/log4j.properties" which is an invalid path in your project.. Try using copy task for moving .properties file to '${outputDir}' directory and then perform war packaging....

You could use a pair of condition tasks with nested conditions to do a positive and negative match for your variable value, setting the property accordingly. (If the condition does not match, it does not set the property.) build.xml <project> <condition property="var1" value="class1"> <equals arg1="value" arg2="${the_value}"/> </condition> <condition property="var1" value="class2">...

You are correct that the JEE library is missing. Could it be that you did not declare it in the Ant task? See this user documentation topic: Building applications and adapters > Building an adapter building a Java adapter without libs <path id="my.path"> <pathelement path="/opt/IBM/Worklight/WorklightServer/worklight-jee-library.jar"/> </path> <adapter-builder folder="adapterRootFolder" destinationfolder="destination-folder" classpathref="my.path"/>...

I don't think there exist a predefined property in ant because your requirements are very specific. You may use <foreach> task from ant-contrib and write a recursive target which performs a copy. Or you may implement the recursive solution in javascript using <script language="javascript"> . In this case you don't...

It's certainly possible to do all sorts of things at compile time with custom compiler tasks etc, but I don't think it's very practical. Personally, I'd have an enum of property keys and property files for their value configurations - something like: public enum { CONST_NAME } and MyConstants.get(CONST_NAME) and...

The problem is the UTF-8-encoded byte-order-mark at the front of the file (ef bb ff). Properties files are always encoded in ISO8859-1, not UTF-8, so the files are not valid properties files. I strongly recommend fixing the properties files (and make the other person switch to an editor that doesn't...

That totally depends on the ant build setup. But one good guess is that you will have to put the files residing in the "Alfresco" folder of your old project into different subfolders of the repo-amp, and the same way around with the "Share" folder. Most files will go into...

There are two steps to solving this issue: Add <pathelement path="${java.class.path}" /> to the class path for the test environment. Add fork="true" to the attributes for the junit element. You can also choose a fork mode for the junit element. For example, I used forkmode="once". includeantruntime should remain false for...

I figured it out!!! Another way to get this working is to execute run.sh in an inline group and send it to the background. Then, redirect stderr to stdout for the group, pipe it to the while in another inline group, and break the loop when I parse the message...

@Dr.Bokko is correct...and I should thank him for guiding in the right direction. I am trying to give the complete answer. There are three factors based upon which we can do the setup of GIT with JENKINS. 1st Factor: To access GIT repository, if it is a public repository, then...

It looks like ant commands are broken in Android SDK 24.3, which cordova build is using. I downgraded to previous release (24.2.0) and ant works fine now. You can download previous SDK from: http://dl-ssl.google.com/android/repository/tools_r24.2-windows.zip...

The Java FX does not allow you to pass any additional arguments to ISCC.exe. At least according to OpenJFX source code: //run candle ProcessBuilder pb = new ProcessBuilder( TOOL_INNO_SETUP_COMPILER_EXECUTABLE.fetchFrom(params), "/o"+outdir.getAbsolutePath(), getConfig_ExeProjectFile(params).getAbsolutePath()); pb = pb.directory(EXE_IMAGE_DIR.fetchFrom(params)); IOUtils.exec(pb, VERBOSE.fetchFrom(params)); You might do with setting an environment variable instead of parameter and consume it...

In Ant properties are immutable unless you use the local scope. So if sdk.dir was set before from a property file then the second assignment in condition will be ignored. You can run ant -verbose to see what is happening....

Intellij supports Ant projects via built in Ant plugin which is included by default in IDE. To check if it is enabled go to Settings > Plugins > Ant After enabling plugin, you can use build.xml from View > Tool Windows > Ant Build You should then have option(+) of...

The third-party libraries can be stored in a shared folder on the network in a source control system (git, svn, perforce) in repository (artifactory, nexus) etc Before creating the war you should fetch these libraries (the method depends on the solution you choose) and place them locally. ...

If these are separate Ant processes, then I think the only solution is to define a lockfile of some sort that each Ant process needs to acquire before it can continue. Perhaps the tempfile task could be used for this? Actually, a sort-of semaphore based on a directory might be...

I had the same error after updating the android SDK to the latest build tools. The tools\ant\build.xml script does not contain any references for the tools. This can be solved, by adding the tools to the build.xml and point to the correct path. For me this was build-tools\22.0.1 Please compare...

You can use concat <target name="concat"> <concat destfile="c.properties" > <fileset file="a.properties" /> <fileset file="b.properties" /> </concat> </target> see also https://ant.apache.org/manual/Tasks/concat.html My tests show that if a.properties and b.properties contain the same properties the definition in b.properties is used. I don't know if this is documented to function like that....

According to the testng doc One of attributes classpath, classpathref or nested must be used for providing the tests classpath. Which means you have to compile test classes before running the tests....

There are a couple "tasks" available in ant that you could use to accomplish this. You can use either of these: Java Task, Exec Task Those documentation pages provide examples as well. Before you go there though, you might want to start at the basic manual to get an idea...

You're mixing technologies. ANT does not use "settings.xml" files, that is a configuration file for Maven. I would suggest looking at the ANT documentation on how to configure proxies https://ant.apache.org/manual/proxy.html...

Important is to add the correct JUnit version (in this case 4.11) to the classpath of the JUnit ant task. Here is a simple ant file compiling and executing the ParameterTest. The directory structure looks like this: src /test/ParameterTest.java lib /junit-4.11.jar /hamcrest-core-1.3.jar build.xml: <?xml version="1.0" encoding="UTF-8"?> <project name="test"> <property name="src"...

Check the version of Java you are using to compile your classes. You need to be using Java 6 or 7 for Android development. Java 7 support was added more recently and its functionality is limited, so use 6 for maximum compatibility....

sql task has output property where you can specify csv file which will contain SQL results. If you want to generate xlxs file you can use Txt2XlsxTask where you specify the input file obtained from sql task and xlsx output file....

I want to do that automatically via Windows command line, how can I do that? NetBeans uses Makefile-based projects as default for C/C++ projects, so you can use make to build your project: cd <Project dir> make It's also possible to build other make-targets (eg. make all or make...

excludesfile is used to specify a file containing a List of files to exclude in the zip process (each on a separate line). To specify the list as comma (or space) separated files, use the excludes Parameter. eg: excludes="file1,file2" ...