Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pipeline {
agent { label 'Node02' }
options {
buildDiscarder(logRotator(numToKeepStr:'10'))
timeout(time: 10, unit: 'MINUTES')
skipDefaultCheckout()
}
stages {
stage ('Build') {
steps {
checkout([$class: 'GitSCM', branches: scm.branches, extensions: scm.extensions + [[$class: 'CleanCheckout']], userRemoteConfigs: scm.userRemoteConfigs])
withEnv(["DLC=${tool name: 'OpenEdge-12.1', type: 'openedge'}", "JAVA_HOME=${tool name: 'JDK8', type: 'jdk'}"]) {
bat "%DLC%\\ant\\bin\\ant -DDLC=%DLC% -lib %DLC%\\pct\\pct.jar init build dist"
}
archiveArtifacts artifacts: 'target/DataDigger.zip'
}
}
}
}
37 changes: 37 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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>

<target name="dist">
<zip destfile="target/DataDigger.zip">
<fileset dir="target/build" includes="*.r" />
<fileset dir="." includes="*.wrx" />
<fileset dir="." includes="*.bat,*.ini,*.txt,image/*" />
</zip>
</target>
</project>
5 changes: 3 additions & 2 deletions wAbout.w
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ PROCEDURE initializeObject :
edChangelog:FONT = getFont('Fixed').

btnDataDigger:LOAD-IMAGE(getImagePath('box.gif')).
imgPlayer:LOAD-IMAGE(getImagePath('player.gif')).
imgPlayer:LOAD-IMAGE(getImagePath('player2.gif')).
imgBall:LOAD-IMAGE(getImagePath('ball.gif')).

/* Set version name */
Expand Down Expand Up @@ -506,4 +506,5 @@ PROCEDURE justWait :
END PROCEDURE. /* justWait */

/* _UIB-CODE-BLOCK-END */
&ANALYZE-RESUME
&ANALYZE-RESUME