javatools/javasecuritycustomization/policyeditor/build/build.xml
author Pasi Pentikainen <pasi.a.pentikainen@nokia.com>
Tue, 22 Jun 2010 09:54:11 +0100
branchGCC_SURGE
changeset 43 6d7ae91094e7
parent 21 2a9601315dfc
permissions -rw-r--r--
Conditional choice of classes.cldc.zip location for Nokia and SF builds - Bug 3029

<!--
#
# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
#
-->

<project name="securitypolicyeditortool" default="deploy" basedir=".">
  <description>Compiles the security policy tool</description>

  <property name="tool.classes.dir" location="javabuild"/>
  <property name="tool.src.dir" location="../javasrc"/>
  <property name="tool.bin" location="../bin/securitypolicyeditor.jar"/>
  <property name="tool.lib" location="../lib/engine.jar"/>

  <target name="init">
    <mkdir dir="${tool.classes.dir}"/>
  </target>
  
  <target name="deploy" depends="compile">
    <jar jarfile="${tool.bin}" update="true">
        <fileset dir="${tool.classes.dir}"/>
    </jar>
  </target>
  
  <target name="compile" depends="init">
    <javac 
      source="1.3" 
      target="1.3"
      destdir="${tool.classes.dir}"
      debug="on"
      debuglevel="lines, vars, and source"
      classpath="${tool.bin}${path.separator}${tool.lib}">
      <src path="${tool.src.dir}"/>
    </javac>
  </target>
  
  <target name="clean"
        description="clean up" >
    <delete dir="${tool.classes.dir}"/>
  </target>

</project>