Commit b167e971 authored by Sergio Pérez's avatar Sergio Pérez
Browse files

Ant to Maven

parent d49f34b6
Loading
Loading
Loading
Loading

EDG/EDG.iml

0 → 100644
+24 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
    <output url="file://$MODULE_DIR$/target/classes" />
    <output-test url="file://$MODULE_DIR$/target/test-classes" />
    <content url="file://$MODULE_DIR$">
      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
      <excludeFolder url="file://$MODULE_DIR$/target" />
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
    <orderEntry type="library" name="org.jgrapht:jgrapht-core:1.3.1" level="project" />
    <orderEntry type="library" name="org.jgrapht:jgrapht-io:1.3.1" level="project" />
    <orderEntry type="module" module-name="Miscellanea" />
    <orderEntry type="library" name="Maven: org.jgrapht:jgrapht-core:1.3.1" level="project" />
    <orderEntry type="library" name="Maven: org.jheaps:jheaps:0.10" level="project" />
    <orderEntry type="library" name="Maven: org.jgrapht:jgrapht-io:1.3.1" level="project" />
    <orderEntry type="library" name="Maven: org.antlr:antlr4-runtime:4.7.2" level="project" />
    <orderEntry type="library" name="Maven: org.apache.commons:commons-text:1.6" level="project" />
    <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.8.1" level="project" />
  </component>
</module>
 No newline at end of file

EDG/build.xml

deleted100644 → 0
+0 −49
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>

EDG/pom.xml

0 → 100644
+34 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>es.upv.dsic.slicing</groupId>
    <artifactId>EDG</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>es.upv.dsic.slicing</groupId>
            <artifactId>Miscellanea</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.jgrapht</groupId>
            <artifactId>jgrapht-core</artifactId>
            <version>1.3.1</version>
        </dependency>
        <dependency>
            <groupId>org.jgrapht</groupId>
            <artifactId>jgrapht-io</artifactId>
            <version>1.3.1</version>
        </dependency>
    </dependencies>
    
</project>
 No newline at end of file
+15 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
    <output url="file://$MODULE_DIR$/target/classes" />
    <output-test url="file://$MODULE_DIR$/target/test-classes" />
    <content url="file://$MODULE_DIR$">
      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
      <excludeFolder url="file://$MODULE_DIR$/target" />
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>
 No newline at end of file

Miscellanea/build.xml

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

<project name="Miscellanea" default="dist" basedir=".">
  <!-- Properties -->
  <!-- Distribution -->
  <property name="jar.name" value="misc.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" />

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

  <!-- Builds the project -->
  <target name="build.project">
    <mkdir dir="${build.bin.dir}" />
    <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 destfile="${dist.dir}/${jar.name}" basedir="${build.bin.dir}"/>
  </target>

  <!-- Cleans the mess done -->
  <target name="clean">
    <delete dir="${build.dir}" />
  </target>
</project>
Loading