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 create a signed APK file using Cordova command line interface?

Step 1: D:\projects\Phonegap\Example> cordova plugin rm org.apache.cordova.console –save add the –save so that it removes the plugin from the config.xml file. Step 2: To generate a release build for Android, we first need to make a small change to the AndroidManifest.xml file found in platforms/android. Edit the file and change the line: <application android:debuggable=”true” android:hardwareAccelerated=”true” … Read more

Create cross platform Java SWT Application

I’ve just run into the same problem. I haven’t tried it yet, but I plan to include versions of swt.jar for all platforms and load the correct one dynamically in the start of the main method. UPDATE: It worked. build.xml includes all jars: <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_linux_gtk_x86.jar”/> <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_macosx_x86.jar”/> <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_win32_x86.jar”/> <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_linux_gtk_x64.jar”/> … Read more

How in ant use "<" in text?

When you want to use characters which stand for predefined standard entities in attribute value or text, you must write it as entity. Predefined entity covers ” ‘ < > & In your case you have to write replaceregexp match=”app_name&quot;&gt;(.*)&lt;” (The single quot limits the attribute value here, when a single quote appear IN the … Read more