Building an older version

13 views
Skip to first unread message

Dave Weis

unread,
Feb 12, 2018, 10:22:23 AM2/12/18
to Play Framework
Hello!

I'm trying to build and run an older version of a play application using ant and am having trouble. Everything builds fine now but I'm not able to run the application. Below is my build.xml file.

Thank you for any help!

The error I receive is
run:
     [java] Exception in thread "main" java.lang.NullPointerException
     [java]     at java.io.File.<init>(File.java:277)
     [java]     at play.server.Server.main(Server.java:152)
     [java] Java Result: 1


<project name="changeweb">

  <property name="src" location="change/trunk/Web/change/app" />
  <property name="build" location="build" />
  <property name="dist" location="dist" />

  <path id="classpath">
    <fileset dir="change/trunk/Web/change/lib" includes="*.jar" />
    <fileset dir="utilities/play/framework/lib" includes="*.jar" />
    <fileset dir="play/lib" includes="*.jar" />
    <fileset dir="/usr/share/java" includes="*.jar" />
    <fileset dir="change/trunk/Web/change/modules/redis-0.3/lib" includes="*.jar" />
    <fileset dir="conf" includes="*" />
  </path>


  <target name="init">
    <tstamp/>
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init">

    <javac srcdir="${src}" destdir="${build}">
      <classpath>
        <path refid="classpath"/>
      </classpath>
    </javac>

  </target>

  <target name="dist" depends="compile"
          description="generate the distribution">
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
  </target>

  <target name="clean"
          description="clean up">
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>



Reply all
Reply to author
Forward
0 new messages