Java Preprocessor Using Eclipse Part 4 Print
Written by Administrator   
Sunday, 03 January 2010 17:02

Java Preprocessor Using Eclipse Part 4

<-- Prev Page          Next Page -->

 Creating prebopBuild.xml file

   Now we want to make our own build script to use instead of the Eclipse default script.   To do this, right click on the Hello project and select new -> file.

 

Create prebopBuild.xml

When you first create the file, it will be in Design mode, so we want it to be source mode where you can type directly:

 Source Mode

 The xml file text should be:

<?xml version="1.0"?>
<project name="Hello" default="compile" basedir=".">
    <!-- Sets variables which can later be used. -->
    <!-- The value of a property is accessed via ${} -->
    <property name="src" location="src" />
    <property name="build" location="bin" />


    <!-- Creates the  build, docs and dist directory-->
    <target name="makedir">
        <mkdir dir="${build}" />
    </target>


    <!-- Compiles the java code -->
    <target name="compile" depends="makedir">
        <javac srcdir="${src}" destdir="${build}" />
    </target>
</project>

 

 

 

 

<-- Prev Page          Next Page -->

 

 

 

 

 

 

 

 

 

 

 

Last Updated on Sunday, 03 January 2010 19:40