58026c83ab
* Moved Item, PropertyHelp to the com.jdblabs.gtd namespace. * Broke out common functions from GTCLI to a new Util class. * Created a GTDServlet class which responds to the following endpoints: * `/login` (POST): Expects JSON input in the request body in the form of `{"username": "joe_user", "password": "password1234" }`. The username and password are validated against the values listed in the GTD root directory .properties file. * `/contexts` (GET): Returns all the GTD contexts the current user has `read` access to. * `/contexts/<contextId>` (GET): Returns a single context. The ID is the GTD context directory name. * `/projects` (GET): Returns all the GTD projects the current user has `read` access to. * `/projects/<projectId>` (GET): Returns a single project. The ID is the GTD project directory name. * `/next-actions/<categoryNames>` (GET): Returns all the next actions for a list of contexts or projects. The categoryNames value is expected to be a comma-delimited list of project and context names.
71 lines
2.2 KiB
XML
71 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project name="gtd-cli" basedir="." default="ng-deploy">
|
|
|
|
<property file="project.properties"/>
|
|
<import file="jdb-build-1.10.xml"/>
|
|
|
|
<target name="init">
|
|
<mkdir dir="${build.dir}/main/classes"/>
|
|
</target>
|
|
|
|
<target name="ng-deploy" depends="build">
|
|
<!-- Stop the Nailgun Server -->
|
|
<exec executable="cmd" os="Windows XP">
|
|
<arg value="/c"/>
|
|
<arg value="ng-stop"/>
|
|
</exec>
|
|
|
|
<exec executable="ng-stop" os="Linux"/>
|
|
|
|
<!-- delete old copies -->
|
|
<delete>
|
|
<fileset dir="${nailgun.classpath.dir}">
|
|
<include name="${name}*.jar"/>
|
|
</fileset>
|
|
</delete>
|
|
|
|
<!-- copy new build -->
|
|
<copy todir="${nailgun.classpath.dir}">
|
|
<fileset dir="${build.dir}/lib/runtime/jar"/>
|
|
<fileset dir="${build.dir}">
|
|
<include name="${name}-${version}.${build.number}.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<!-- start the NG server up again. -->
|
|
<exec executable="cmd" os="Windows XP">
|
|
<arg value="/c"/>
|
|
<arg value="ng-start"/>
|
|
</exec>
|
|
|
|
<exec executable="ng-start" os="Linux"/>
|
|
</target>
|
|
|
|
<target name="servlet" depends="compile,increment-build-number">
|
|
<mkdir dir="${build.dir}/servlet/WEB-INF/classes"/>
|
|
<mkdir dir="${build.dir}/servlet/WEB-INF/lib"/>
|
|
<mkdir dir="${build.dir}/servlet/META-INF"/>
|
|
|
|
<copy todir="${build.dir}/servlet/WEB-INF/classes">
|
|
<fileset dir="${build.dir}/main/classes"/>
|
|
</copy>
|
|
<copy todir="${build.dir}/servlet/WEB-INF/lib">
|
|
<fileset dir="${build.dir}/lib/runtime/jar"/>
|
|
</copy>
|
|
<copy todir="${build.dir}/servlet/WEB-INF">
|
|
<fileset dir="${resources.dir}/WEB-INF"/>
|
|
</copy>
|
|
<copy todir="${build.dir}/servlet/META-INF">
|
|
<fileset dir="${resources.dir}/META-INF"/>
|
|
</copy>
|
|
|
|
<!--<jar
|
|
destfile="${build.dir}/${name}-servlet-${version}.${build.number}.war"
|
|
basedir="${build.dir}/servlet"/> -->
|
|
|
|
<jar destfile="${build.dir}/gtd.war" basedir="${build.dir}/servlet"/>
|
|
|
|
</target>
|
|
|
|
</project>
|