Step 3 - Riverside-Software/pugchallenge2019 GitHub Wiki

Local build

  • Create a new file build.xml in the root directory of the application:

  • Copy and paste this content:
<?xml version="1.0" encoding="utf-8"?>

<!-- How to execute : %DLC%\ant\bin\ant -lib %DLC%\pct\PCT.jar -DDLC=%DLC% clean build -->
<project name="DataDigger" >
  <taskdef resource="PCT.properties" />

  <target name="clean">
    <delete dir="target" />
  </target>

  <target name="init">
    <mkdir dir="target/build" />
    <mkdir dir="target/db" />
    <PCTVersion />
    <ProgressVersion dlcHome="${DLC}" fullVersion="dlc.version.full" />
    <echo message="${dlc.version.full}" />
    <sports2000 destDir="target/db" dlcHome="${DLC}" />
  </target>

  <target name="build" depends="init">
    <PCTCompile destdir="target/build" graphicalMode="true" dlcHome="${DLC}" cpinternal="utf-8" cpstream="utf-8" listing="true" relativePaths="true" xmlXref="true" keepXref="true" requireFullKeywords="false" requireFullNames="true" requireFieldQualifiers="true">
      <fileset dir="." includes="*.p,*.w,*.cls" />
      <DbConnection dbDir="target/db" dbName="sports2000" readOnly="true" />
      <propath>
        <pathelement location="." />
      </propath>
    </PCTCompile>
  </target>

</project>
  • Execute the Ant build in your local workspace, and verify that the build is succesful. RCode has to be present in target/build

  • Based on the documentation of the Zip task, add a new target called dist which creates a deliverable for the application. The requirements are:

    • Artifact should be target/DataDigger.zip
    • ZIP format
    • Include all rcode from target/build
    • Include all wrx, bat, ini and txt files
    • Include all images from the image directory
  • Execute this new target, and verify that the ZIP file is generated:

  • If stuck, solution is available here

🚀🚀🚀 Jump to Step 4 !!! 🚀🚀🚀

⚠️ **GitHub.com Fallback** ⚠️