Commit 56fc223e authored by Carlos Galindo's avatar Carlos Galindo
Browse files

initial commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+4 −0
Original line number Diff line number Diff line
dist/
build/
bin/
*.beam

EDG/build.xml

0 → 100644
+49 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>

<project name="EDG" default="dist" basedir=".">
  <!-- Properties -->
  <!-- Distribution -->
  <property name="author.name" value="David Insa Cabrera" /> <!-- Developer dependent -->
  <property name="jar.name" value="${ant.project.name}.jar" /> <!-- Program dependent -->
  <property name="dist.base.dir" location="../dist" /> <!-- Computer dependent -->
  <property name="dist.dir" location="${dist.base.dir}/${ant.project.name}" />
  <property name="workspace.location" location=".." /> <!-- Computer dependent -->
  <!-- Resources -->
  <property name="src.dir" location="src" />
  <property name="build.dir" location="build" />
  <property name="build.bin.dir" location="${build.dir}/bin" />
  <!-- References (optional) -->
  <property name="Miscellanea.location" value="${workspace.location}/Miscellanea" /> <!-- Computer dependent -->

  <!-- Creates the distribution version -->
  <target name="dist" depends="build.dist, clean" />

  <!-- Macros -->
  <!-- Macro to build subprojects -->
  <macrodef name="buildsubproject">
    <attribute name="dir" />
    <sequential>
      <ant dir="@{dir}" inheritAll="false" target="build.project" />
      <copy todir="${build.bin.dir}"><fileset dir="@{dir}/build/bin" /></copy>
    </sequential>
  </macrodef>

  <!-- Builds the project -->
  <target name="build.project">
    <mkdir dir="${build.bin.dir}"/>
    <buildsubproject dir="${Miscellanea.location}" />
    <javac includeantruntime="false" srcdir="${src.dir}" destdir="${build.bin.dir}"/>
  </target>

  <!-- Builds the distribution version -->
  <target name="build.dist" depends="build.project">
    <mkdir dir="${dist.dir}" />
    <jar jarfile="${dist.dir}/${jar.name}" basedir="${build.bin.dir}" />
  </target>

  <!-- Cleans the mess done -->
  <target name="clean">
    <ant dir="${Miscellanea.location}" inheritall="false" target="clean" />
    <delete dir="${build.dir}" />
  </target>
</project>
+0 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −0

File added.

Preview size limit exceeded, changes collapsed.