Permalink
Browse files

Removed reference ant and ivy

  • Loading branch information...
1 parent 8ee1c83 commit cfd7155ef0d3b8263d5775c962236e098ba0d2aa @rpidikiti rpidikiti committed Mar 2, 2012
Showing with 0 additions and 224 deletions.
  1. +0 −160 build.xml
  2. +0 −41 ivy.xml
  3. +0 −23 ivysettings.xml
View
160 build.xml
@@ -1,160 +0,0 @@
-<project name="swagger-libs-gen" xmlns:ivy="antlib:org.apache.ivy.ant" default="compile" basedir=".">
- <property environment="env" />
- <property name="version.identifier" value="1.1-SHAPSHOT.121026" />
- <property name="artifact.ext" value="jar" />
- <property name="organization" value="com.wordnik" />
- <property name="module" value="${ant.project.name}" />
- <property name="scala.home" value="${env.SCALA_HOME}" />
-
- <mkdir dir="lib"/>
- <mkdir dir="lib/ext"/>
- <mkdir dir="build"/>
- <mkdir dir="src/main/scala"/>
- <mkdir dir="src/test/java"/>
- <mkdir dir="src/test/scala"/>
-
- <condition property="apiConfiguration.set">
- <and>
- <isset property="apiConfiguration"/>
- </and>
- </condition>
-
- <taskdef resource="scala/tools/ant/antlib.xml">
- <classpath>
- <fileset dir="lib">
- <include name="scala**.jar" />
- </fileset>
- <fileset dir="${scala.home}/lib">
- <include name="scala**.jar" />
- </fileset>
- </classpath>
- </taskdef>
-
- <target name="clean" description="cleans the project folder">
- <mkdir dir="build" />
- <echo message="deleting build files" />
- <delete quiet="true">
- <fileset dir="build">
- <include name="*.jar" />
- <include name="*.xml" />
- </fileset>
- </delete>
-
- <delete dir="build/main" quiet="true" />
-
- <!-- libraries handled by ivy -->
- <echo message="deleting libs handled by ivy" />
- <delete>
- <fileset dir="lib">
- <include name="*.jar" />
- <include name="*.zip" />
- </fileset>
- </delete>
- </target>
-
- <target name="resolve" description="retreive dependencies with ivy">
- <delete>
- <fileset dir="lib">
- <include name="*.jar" />
- <include name="*.zip" />
- </fileset>
- </delete>
- <ivy:retrieve pattern="${basedir}/lib/[artifact]-[revision].[ext]" conf="build" />
- </target>
-
- <target name="compile" depends="resolve" description="builds the module">
- <echo message="building ${module}-${version.identifier}.${artifact.ext}"/>
- <delete quiet="true" file="build/${module}-*.jar" />
- <mkdir dir="build" />
- <mkdir dir="build/main" />
- <mkdir dir="build/main/java" />
- <scalac srcdir="src/main/java:src/main/scala" destdir="build/main/java">
- <classpath>
- <pathelement location="build/main/java" />
- <fileset dir="lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="lib/ext">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${scala.home}/lib"/>
- </classpath>
- <include name="**/*.scala" />
- <include name="**/*.java" />
- </scalac>
- <javac srcdir="src/main/java:src/main/scala" debug="true" destdir="build/main/java">
- <classpath>
- <pathelement location="build/main/java" />
- <fileset dir="lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="lib/ext">
- <include name="*.jar" />
- </fileset>
- </classpath>
- <include name="**/*.java" />
- </javac>
-
- <jar jarfile="build/${module}-${version.identifier}.${artifact.ext}">
- <fileset dir="build/main/java" />
- </jar>
- </target>
-
- <!-- generates the classes -->
- <target name="generate-java" depends="resolve, compile" description="generates APIs and model classes for java language">
- <fail unless="apiConfiguration.set">
- Must specify the parameter for apiConfiguration
- eg. -DapiConfiguration=../api-server-lib/java/config/apiConfiguration.json
- </fail>
- <echo>
- apiConfiguration to be used : ${apiConfiguration}
- </echo>
- <java classname="com.wordnik.swagger.codegen.config.java.JavaLibCodeGen">
- <classpath>
- <pathelement location="build/main/java" />
- <fileset dir="lib">
- <include name="**/*.jar"/>
- </fileset>
- </classpath>
- <arg value="${apiConfiguration}"/>
- </java>
- </target>
-
- <!-- generates the classes -->
- <target name="generate-as3" depends="resolve, compile" description="generates APIs and model classes for Actionscript 3">
- <fail unless="apiConfiguration.set">
- Must specify the parameter for apiConfiguration
- eg. -DapiConfiguration=../api-server-lib/as3/config/apiConfiguration.json
- </fail>
- <echo>
- apiConfiguration to be used : ${apiConfiguration}
- </echo>
- <java classname="com.wordnik.swagger.codegen.config.as3.As3LibCodeGen">
- <classpath>
- <pathelement location="build/main/java" />
- <fileset dir="lib">
- <include name="**/*.jar"/>
- </fileset>
- </classpath>
- <arg value="${apiConfiguration}"/>
- </java>
- </target>
-
- <target name="deploy" depends="resolve, compile" description="builds and copies the artifact to the local ivy cache">
- <echo message="building pom file" />
- <property name="ivy.pom.version" value="${version.identifier}" />
- <ivy:makepom ivyfile="ivy.xml" pomfile="build/${module}-${version.identifier}.pom" />
-
- <echo message="publishing module ${module}" />
- <ivy:publish resolver="local" organisation="${organization}" conf="source,test,build,pom,common" pubrevision="${version.identifier}" overwrite="true">
- <artifacts pattern="build/[artifact]-[revision].[ext]" />
- </ivy:publish>
- <echo message="project ${module} published locally with version lib/${version.identifier}" />
- </target>
-
- <target name="dependency.tree" description="builds a graphml dependency diagram for viewing with yEd">
- <ivy:report conf="build" graph="true" todir="." outputpattern="[artifact]-[revision].[ext]" />
- </target>
-
-</project>
-
View
41 ivy.xml
@@ -1,41 +0,0 @@
-<ivy-module version="2.0">
- <info organisation="com.wordnik" module="swagger-libs-gen" />
- <configurations>
- <conf name="build" visibility="public" />
- <conf name="test" visibility="public" />
- <conf name="source" visibility="public" />
- <conf name="pom" visibility="public" />
- <conf name="tools" visibility="public" extends="build" />
- </configurations>
-
- <publications>
- <artifact name="swagger-libs-gen" type="jar" conf="build" ext="jar" />
- </publications>
-
- <dependencies>
- <!-- jersey dependencies -->
- <dependency org="junit" name="junit" rev="4.4" conf="build->default" />
- <dependency org="com.sun.jersey" name="jersey-json" rev="1.7" conf="build->default" />
- <dependency org="com.sun.jersey" name="jersey-client" rev="1.7" conf="build->default" />
- <dependency org="com.sun.jersey" name="jersey-server" rev="1.7" conf="build->default" />
- <dependency org="com.sun.jersey" name="jersey-core" rev="1.7" conf="build->default" />
-
- <dependency org="asm" name="asm-parent" rev="3.1" conf="build->default" />
- <dependency org="commons-beanutils" name="commons-beanutils" rev="1.8.0" conf="build->default" />
- <dependency org="org.antlr" name="stringtemplate" rev="3.2" conf="build->default" />
-
- <dependency org="org.slf4j" name="slf4j-simple" rev="1.5.8" conf="build->default"/>
- <dependency org="org.slf4j" name="slf4j-api" rev="1.5.8" conf="build->default"/>
-
- <!-- jackson jars -->
- <dependency org="org.codehaus.jackson" name="jackson-jaxrs" rev="1.7.7" conf="build->default" />
- <dependency org="org.codehaus.jackson" name="jackson-xc" rev="1.7.7" conf="build->default" />
- <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="1.7.7" conf="build->default" />
- <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="1.7.7" conf="build->default" />
-
- <dependency org="net.sourceforge.cobertura" name="cobertura" rev="1.9.2" conf="test->default">
- <exclude org="asm" name="asm-tree" />
- <exclude org="asm" name="asm" />
- </dependency>
- </dependencies>
-</ivy-module>
View
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ivysettings>
- <settings defaultResolver="chained" />
- <property name="ivy.checksums" value=""/>
- <property name="ivy.local.default.root" value="${ivy.default.ivy.user.dir}/local"
- override="false" />
- <property name="ivy.local.default.ivy.pattern"
- value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
- override="false" />
- <property name="ivy.local.default.artifact.pattern"
- value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
- override="false" />
- <resolvers>
- <chain name="chained" returnFirst="true">
- <filesystem name="local">
- <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
- <artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
- </filesystem>
- <ibiblio name="ibiblio" m2compatible="true" />
- <ibiblio name="javanet" root="http://download.java.net/maven/2/" m2compatible="true" />
- </chain>
- </resolvers>
-</ivysettings>

0 comments on commit cfd7155

Please sign in to comment.