Permalink
Browse files

move to standard directory structure

  • Loading branch information...
0 parents commit 1cff201679c33f3a8f6fc1de4f29cbbd836b8095 derrickoswald committed Sep 16, 2006
Showing 346 changed files with 73,866 additions and 0 deletions.
@@ -0,0 +1,5 @@
+@echo off
+rem usage:
+rem build clean install site
+rem build assembly:assembly
+mvn -Dmaven.test.skip=true %1 %2 %3 %4
@@ -0,0 +1,50 @@
+<project name="HTMLParserProject" default="jar" basedir=".">
+ <property file="${user.home}/.m2/maven.properties"/>
+ <property name="maven.build.output" value="target/classes"/>
+ <property name="maven.build.directory" value="target"/>
+ <property name="maven.build.final.name" value="HTMLParserProject-2.0"/>
+ <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
+ <property name="maven.test.output" value="target/test-classes"/>
+ <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
+ <path id="build.classpath">
+ <fileset dir="${maven.repo.local}"/>
+ </path>
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${maven.build.directory}"/>
+ </target>
+ <target name="compile" depends="get-deps" description="Compile the code">
+ <mkdir dir="${maven.build.output}"/>
+ <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
+ <src>
+ <pathelement location="src/main/java"/>
+ </src>
+ <classpath refid="build.classpath"/>
+ </javac>
+ <copy todir="${maven.build.output}">
+ <fileset dir="src/main/resources"/>
+ </copy>
+ </target>
+ <target name="jar" depends="compile,test" description="Clean the JAR">
+ <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
+ </target>
+ <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
+ <mkdir dir="${maven.test.output}"/>
+ </target>
+ <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
+ <target name="test-junit-present">
+ <available classname="junit.framework.Test" property="junit.present"/>
+ </target>
+ <target name="junit-present" depends="test-junit-present" unless="junit.present">
+ <echo>================================= WARNING ================================</echo>
+ <echo> Junit isn&apos;t present in your $ANT_HOME/lib directory. Tests not executed. </echo>
+ <echo>==========================================================================</echo>
+ </target>
+ <target name="test-offline">
+ <condition property="maven.mode.offline">
+ <equals arg1="${build.sysclasspath}" arg2="only"/>
+ </condition>
+ </target>
+ <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
+ <mkdir dir="${maven.repo.local}"/>
+ </target>
+</project>
@@ -0,0 +1,57 @@
+<project name="filterbuilder" default="jar" basedir=".">
+ <property file="${user.home}/.m2/maven.properties"/>
+ <property name="maven.build.output" value="target/classes"/>
+ <property name="maven.build.directory" value="target"/>
+ <property name="maven.build.final.name" value="filterbuilder"/>
+ <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
+ <property name="maven.test.output" value="target/test-classes"/>
+ <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
+ <path id="build.classpath">
+ <fileset dir="${maven.repo.local}">
+ <include name="org/htmlparser/htmlparser/2.0/htmlparser-2.0.jar"/>
+ <include name="org/htmlparser/htmllexer/2.0/htmllexer-2.0.jar"/>
+ </fileset>
+ </path>
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${maven.build.directory}"/>
+ </target>
+ <target name="compile" depends="get-deps" description="Compile the code">
+ <mkdir dir="${maven.build.output}"/>
+ <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
+ <src>
+ <pathelement location="src/main/java"/>
+ </src>
+ <classpath refid="build.classpath"/>
+ </javac>
+ <copy todir="${maven.build.output}">
+ <fileset dir="src/main/java">
+ <include name="**/*.gif"/>
+ </fileset>
+ </copy>
+ </target>
+ <target name="jar" depends="compile,test" description="Clean the JAR">
+ <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
+ </target>
+ <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
+ <mkdir dir="${maven.test.output}"/>
+ </target>
+ <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
+ <target name="test-junit-present">
+ <available classname="junit.framework.Test" property="junit.present"/>
+ </target>
+ <target name="junit-present" depends="test-junit-present" unless="junit.present">
+ <echo>================================= WARNING ================================</echo>
+ <echo> Junit isn&apos;t present in your $ANT_HOME/lib directory. Tests not executed. </echo>
+ <echo>==========================================================================</echo>
+ </target>
+ <target name="test-offline">
+ <condition property="maven.mode.offline">
+ <equals arg1="${build.sysclasspath}" arg2="only"/>
+ </condition>
+ </target>
+ <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
+ <mkdir dir="${maven.repo.local}"/>
+ <get src="http://repo1.maven.org/maven2/org/htmlparser/htmlparser/2.0/htmlparser-2.0.jar" dest="${maven.repo.local}/org/htmlparser/htmlparser/2.0/htmlparser-2.0.jar" usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/org/htmlparser/htmllexer/2.0/htmllexer-2.0.jar" dest="${maven.repo.local}/org/htmlparser/htmllexer/2.0/htmllexer-2.0.jar" usetimestamp="true" ignoreerrors="true"/>
+ </target>
+</project>
@@ -0,0 +1,107 @@
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.htmlparser</groupId>
+ <artifactId>filterbuilder</artifactId>
+ <packaging>jar</packaging>
+ <name>Filter Builder</name>
+ <version>2.0</version>
+ <description>FilterBuilder is a GUI application for generating java code to filter HTML pages.</description>
+ <url>http://htmlparser.org</url>
+ <parent>
+ <artifactId>HTMLParserProject</artifactId>
+ <groupId>org.htmlparser</groupId>
+ <version>2.0</version>
+ </parent>
+ <build>
+ <finalName>${artifactId}</finalName>
+ <resources>
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.gif</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <jarpath>${project.build.directory}/${project.build.finalName}.jar</jarpath>
+ <signedjar>${project.build.directory}/signed/${project.build.finalName}.jar</signedjar>
+ <keystore>${keystore.location}</keystore>
+ <storepass>${keystore.storepass}</storepass>
+ <keypass>${keystore.keypass}</keypass>
+ <alias>${keystore.alias}</alias>
+ <archive>
+ <manifest>
+ <mainClass>org.htmlparser.parserapplications.filterbuilder.FilterBuilder</mainClass>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <!-- Needed for signing jar files version 2.1-SNAPSHOT of maven-jar-plugin -->
+ <pluginRepositories>
+ <pluginRepository>
+ <name>Maven Plugin Repository</name>
+ <id>central</id>
+ <url>http://repo1.maven.org/maven2</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </pluginRepository>
+ <pluginRepository>
+ <name>Apache Development Repository</name>
+ <id>apache.snapshots</id>
+ <url>http://svn.apache.org/maven-snapshot-repository</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.htmlparser</groupId>
+ <artifactId>htmlparser</artifactId>
+ <version>2.0</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+ <profiles>
+ <profile>
+ <id>default-tools.jar</id>
+ <activation>
+ <property>
+ <name>java.vendor</name>
+ <value>Sun Microsystems Inc.</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun</groupId>
+ <artifactId>tools</artifactId>
+ <version>1.5.0</version>
+ <scope>system</scope>
+ <systemPath>${java.home}/../lib/tools.jar</systemPath>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+</project>
Oops, something went wrong.

0 comments on commit 1cff201

Please sign in to comment.