User Tools

Site Tools


building_transsecs_projects_with_a_command_line

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
building_transsecs_projects_with_a_command_line [2020/10/25 18:39] – wikiadminbuilding_transsecs_projects_with_a_command_line [2020/11/11 14:09] (current) – wikiadmin
Line 58: Line 58:
 </file> </file>
  
-For this argument, you can provide a path (relative to the TransSECS Builder directory) to the customized application.properties file.  TransSECS will read that file at startup and compile the project described in the file.  For example, if you create a subdirectory "buildprops" under the TransSECS Builder directory and place a "headlessbuild.propertie"s file in this subdirectory with this content:+For this argument, you can provide a path (either relative to the TransSECS Builder directory or an absolute path) to the customized application.properties file.  TransSECS will read that file at startup and compile the project described in the file.  For example, if you create a subdirectory "buildprops" under the TransSECS Builder directory and place a "headlessbuild.propertie"s file in this subdirectory with this content:
  
 <file> <file>
Line 73: Line 73:
 <file> <file>
 wrapper.app.parameter.2=buildprops\\headlessbuild.properties wrapper.app.parameter.2=buildprops\\headlessbuild.properties
 +</file>
 +
 +or as a full path for the headlessbuild.properties:
 +
 +<file>
 +wrapper.app.parameter.2=C:\\Users\\Public\\ErgoTech\\TransSECSDevicesTrial\\buildprops\\headlessbuild.properties
 </file> </file>
  
Line 80: Line 86:
  
 <file> <file>
-java -Dtranssecs.headless=true .... buildprops/headlessbuild.properties+java -Dtranssecs.headless=true [... the rest of the command line ...] buildprops/headlessbuild.properties
 </file> </file>
 +
 +or, with a full path to the headlessbuild.properties
 +
 +<file>
 +java -Dtranssecs.headless=true [... the rest of the command line ...] /home/username/TransSECSPlusReporting/MIStudioSuite/TransSECS/Builder/buildprops/headlessbuild.properties
 +</file>
 +
 +where "the rest of the command line" contains the classpath -cp parameter (if classpath is not already defined), other java and jdk parameters and various TransSECS parameters as listed in the TransSECS.conf file in your script or batch file. 
 +
 +An example bash script for Linux to run TransSECS Builder headless (check the current command line parameters in your installation's TransSECS.conf to verify). 
 +
 +<file>
 +CLASSPATH="./:./addons/*:../documentation/*:../../MIStudio/lib/*:../../MIStudio/lib/:../../MIStudio/jars/*:../../MIStudio/core/*:../../MIStudio/core/:../../MIStudio/core/lib/*:../../MIStudio/core/ant/lib/*:${JAVA_HOME}/lib/tools.jar:"
 +
 +/usr/lib/jvm/java-8-openjdk-amd64/bin/java -cp ${CLASSPATH} -Dsun.java2d.d3d=false -Dtranssecs.headless=true -Dsun.java2d.noddraw=true -Dtranssecs.applicationtype=0 -Dsun.lang.ClassLoader.allowArraySyntax=true -DLoggerClass=Log4JLogger   com.ergotech.transsecs.secs.TransSecs /home/ergotech/TransSECSPlusReporting/MIStudioSuite/TransSECS/Builder/buildprops/headlessbuild.properties
 +
 +</file>
 +
  
  
building_transsecs_projects_with_a_command_line.1603665556.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki