View RSS Feed

My Java Tips

  1. Ant Project

    by , 11-19-2011 at 05:43 PM (My Java Tips)
    In this post, I will present a sample build.xml file for a simple Java "Hello, world" application and will explain the ANT project.


    Java Code:
    <project name="HelloWorld" default="compile">
    
      	<target name="compile">
        		<javac srcdir=".">
      	</javac></target>
    
        	<target name="run" depends="jar">
        		<java classname="HelloWorld">
    ...
    Categories
    Ant