Creating a Session ID
...
Code Block | ||
---|---|---|
| ||
<tstamp> <format property="time.stamp" pattern="yyyyMMdd-HHmm"/> </tstamp> <target name="sealights_config"> <java jar="${sealights.dir}/sl-build-scanner.jar" fork="true"> <arg value="-config"/> <arg value="-tokenfile"/> <arg value="/path/to${sealights.dir}/sltoken.txt"/> <arg value="-appname"/> <arg value="myApp"/> <arg value="-branchname"/> <arg value="master"/> <arg value="-buildname"/> <arg value="${time.stamp}"/> <arg value="-pi"/> <arg value="*com.company.*"/> </java> </target> |
...
Code Block | ||
---|---|---|
| ||
<target name="sealights_scan" depends="compile,sealights_config"> <java jar="${sealights.dir}/sl-build-scanner.jar" fork="true"> <arg value="-scan"/> <arg value="-tokenfile"/> <arg value="/path/to${sealights.dir}/sltoken.txt"/> <arg value="-buildsessionidfile"/> <arg value="buildSessionId.txt"/> <arg value="-workspacepath"/> <arg value="${build}"/> <arg value="-r"/> <arg value="-fi"/> <arg value="*.class"/> </java> </target> |
...
JUnit 4.x | JUnit 5.x | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Info |
---|
See 'Java Command Reference - Installing test listener as Java Agent' for full parameter details |
Sample integration into an existing ANT project
...