Share

qwicket

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Build issues

You are viewing a single message from this topic. View all messages.

  1. 2007-05-04 18:51:02 UTC
    I had to make a number of changes to successfully build:

    build.properties
    ----------------
    #build.offline=true
    proxyhost=webproxy.dot.state.mn.us
    proxyport=3128
    #maven.ant.jar.loc=http://www.tux.org/pub/net/apache/dist/maven/binaries
    maven.ant.jar.loc=http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-ant/2.0.4/

    logging.directory=c/temp/qwicket/logs

    build.xml
    ---------
    ...

    <property name="maven.libs" value="lib/maven"/>

    <property name="maven-ant-jar" value="maven-artifact-ant-2.0.4-dep.jar"/>

    <property name="wicket-version" value="1.2.6"/>

    <target name="maven" unless="build.offline">
    <setproxy proxyhost="${proxyhost}" proxyport="${proxyport}"/>
    <get src="${maven.ant.jar.loc}/${maven-ant-jar}"
    dest="lib/${maven-ant-jar}" usetimestamp="true"/>

    <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant">
    <classpath>
    <pathelement location="lib/${maven-ant-jar}"/>
    </classpath>
    </typedef>

    <artifact:dependencies pathId="base.class.path" filesetId="runtime.fileset">
    <dependency groupId="org.springframework" artifactId="spring" version="2.0.4"/>
    <dependency groupId="org.springframework" artifactId="spring-mock" version="2.0.4"/>
    <dependency groupId="wicket" artifactId="wicket" version="${wicket-version}"/>
    <dependency groupId="wicket" artifactId="wicket-extensions" version="${wicket-version}"/>
    <dependency groupId="wicket" artifactId="wicket-spring" version="${wicket-version}"/>
    <dependency groupId="wicket" artifactId="wicket-spring-annot" version="${wicket-version}"/>
    <dependency groupId="org.hibernate" artifactId="hibernate" version="3.2.1.ga"/>
    <dependency groupId="org.hibernate" artifactId="hibernate-annotations" version="3.2.1.ga"/>
    <dependency groupId="ehcache" artifactId="ehcache" version="1.1"/>
    <dependency groupId="commons-dbcp" artifactId="commons-dbcp" version="1.2.1"/>
    <dependency groupId="commons-pool" artifactId="commons-pool" version="1.2"/>
    <dependency groupId="javax.servlet" artifactId="servlet-api" version="2.4"/>
    <dependency groupId="javax.mail" artifactId="mail" version="1.4"/>
    <dependency groupId="pmd" artifactId="pmd" version="3.7"/>
    <dependency groupId="velocity" artifactId="velocity" version="1.4"/>
    <dependency groupId="mysql" artifactId="mysql-connector-java" version="3.1.13"/>
    <dependency groupId="org.mortbay.jetty" artifactId="jetty" version="6.0.0beta16"/>
    </artifact:dependencies>

    <mkdir dir="${maven.libs}"/>
    <copy todir="${maven.libs}" flatten="true" verbose="true">
    <fileset refid="runtime.fileset"/>
    </copy>
    </target>

    <target name="init" depends="maven">
    <path id="project.class.path">
    <pathelement location="${build.dir}/classes"/>
    <fileset dir="lib">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    </target>

    <target name="build" depends="init" description="Compiles the source files.">
    <mkdir dir="${build.dir}/classes"/>
    <mkdir dir="${build.dir}/test"/>
    <javac source="1.5" srcdir="${src.java.dir}" classpathref="project.class.path" destdir="${build.dir}/classes" debug="true"/>
    <javac source="1.5" srcdir="${src.test.dir}" classpathref="project.class.path" destdir="${build.dir}/test" debug="true"/>
    </target>

    ...


< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.