Creating a bundle jar with ant

In my target, I have something like this: <jar destfile=”https://stackoverflow.com/questions/1821803/${store.dir}/temp_final.jar” filesetmanifest=”skip”> <zipgroupfileset dir=”dist” includes=”*.jar”/> <zipgroupfileset dir=”dist/lib” includes=”*.jar” excludes=””/> <manifest> <attribute name=”Main-Class” value=”${main.class}”/> <attribute name=”Class-Path” value=”${mf.classpath}”/> </manifest> </jar> And here is how I build my classpath: <path id=”build.classpath”> <fileset dir=”${basedir}/”> <include name=”${lib.dir}/*.jar”/> </fileset> </path> <pathconvert property=”mf.classpath” pathsep=” “> <path refid=”build.classpath”/> <mapper> <chainedmapper> <flattenmapper/> <globmapper from=”*.jar” to=”lib/*.jar”/> … Read more

How to build the Android sample projects using Ant? build.xml does not exist

You need to execute this command: android update project –target <your build target> –path <path to LunarLander example> which will create the needed build.xml within the example directory, then the ant debug command should work. Take a look here. *You can use android list targets to choose what build target to use for your project.

Do I have a way to check the existence of a directory in Ant (not a file)?

You use the available task with type set to “dir”. For example: <available file=”${dir}” type=”dir”/> The standard way to do conditional processing is with the condition task. In the example below, running doFoo will echo a message if the directory exists, whereas running doBar will echo a message unless the directory exists. The dir.check target … Read more

How to set an Ant property only if it is unset

You simply can set the property with the property-task. If the property is already set, the value is unchanged, because properties are immutable. But you can also include ‘not’ in your condition: <condition property=”core.bin” value=”../bin”> <not> <isset property=”core.bin”/> </not> </condition>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)