Changeset 158 in tmcsimulator
- Timestamp:
- 10/21/2017 11:28:15 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
IDE_metadata/NetBeans/TMCSim/build.xml (modified) (2 diffs)
-
src/tmcsim/client/ATMSBatchDriver.java (modified) (3 diffs)
-
src/tmcsim/client/ATMSBatchViewer.form (modified) (1 diff)
-
src/tmcsim/client/ATMSBatchViewer.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE_metadata/NetBeans/TMCSim/build.xml
r64 r158 237 237 </manifest> 238 238 </jar> 239 240 <!-- *** ATMS Batch Driver Only Jar *** --> 241 <jar destfile="${deploy.dir}/ATMSBatchDriver.jar" 242 basedir="${build.dir}/classes" 243 includes="tmcsim/client/**, tmcsim/common/**, tmcsim/interfaces/**, 244 tmcsim/client/cadclientgui/**, tmcsim/cadmodels/**, 245 atmsdriver/**, atmsdriver.model/**" 246 excludes="**/Test.class"> 247 <zipgroupfileset dir="dist/lib" includes="xercesImpl.jar"/> 248 <manifest> 249 <attribute name="Main-Class" value="tmcsim/client/ATMSBatchDriver"/> 250 </manifest> 251 </jar> 239 252 </target> 240 253 … … 250 263 </target> 251 264 252 <!--253 254 There exist several targets which are by default empty and which can be255 used for execution of your tasks. These targets are usually executed256 before and after some main targets. They are:257 258 -pre-init: called before initialization of project properties259 -post-init: called after initialization of project properties260 -pre-compile: called before javac compilation261 -post-compile: called after javac compilation262 -pre-compile-single: called before javac compilation of single file263 -post-compile-single: called after javac compilation of single file264 -pre-compile-test: called before javac compilation of JUnit tests265 -post-compile-test: called after javac compilation of JUnit tests266 -pre-compile-test-single: called before javac compilation of single JUnit test267 -post-compile-test-single: called after javac compilation of single JUunit test268 -pre-jar: called before JAR building269 -post-jar: called after JAR building270 -post-clean: called after cleaning build products271 272 (Targets beginning with '-' are not intended to be called on their own.)273 274 Example of inserting an obfuscator after compilation could look like this:275 276 <target name="-post-compile">277 <obfuscate>278 <fileset dir="${build.classes.dir}"/>279 </obfuscate>280 </target>281 282 For list of available properties check the imported283 nbproject/build-impl.xml file.284 285 286 Another way to customize the build is by overriding existing main targets.287 The targets of interest are:288 289 -init-macrodef-javac: defines macro for javac compilation290 -init-macrodef-junit: defines macro for junit execution291 -init-macrodef-debug: defines macro for class debugging292 -init-macrodef-java: defines macro for class execution293 -do-jar-with-manifest: JAR building (if you are using a manifest)294 -do-jar-without-manifest: JAR building (if you are not using a manifest)295 run: execution of project296 -javadoc-build: Javadoc generation297 test-report: JUnit report generation298 299 An example of overriding the target for project execution could look like this:300 301 <target name="run" depends="TMCSim-impl.jar">302 <exec dir="bin" executable="launcher.exe">303 <arg file="${dist.jar}"/>304 </exec>305 </target>306 307 Notice that the overridden target depends on the jar target and not only on308 the compile target as the regular run target does. Again, for a list of available309 properties which you can use, check the target you are overriding in the310 nbproject/build-impl.xml file.311 312 -->313 265 </project> -
trunk/src/tmcsim/client/ATMSBatchDriver.java
r157 r158 141 141 System.exit(0); 142 142 } 143 // Initialize the highway model 143 144 incidents = new HashMap<String, List<String>> (); 144 145 highways = new Highways( … … 175 176 long simtime = theCoorInt.getCurrentSimulationTime(); 176 177 currentClock = formatInterval(simtime); 177 long ATMStime = theCoorInt.getATMStime(); 178 Date atmsdate = new Date(ATMStime); 179 currentATMStime = formatter.format(atmsdate); 178 // For Debugging, show the ATMS time 179 // long ATMStime = theCoorInt.getATMStime(); 180 // Date atmsdate = new Date(ATMStime); 181 // currentATMStime = formatter.format(atmsdate); 180 182 try { 181 183 simClock = formatter.parse(currentClock); … … 188 190 } catch (RemoteException ex) 189 191 { 192 System.out.println("Remote Exception reading sim or ATMS clock time"); 190 193 Logger.getLogger(ATMSBatchDriver.class.getName()).log(Level.SEVERE, null, ex); 191 194 } -
trunk/src/tmcsim/client/ATMSBatchViewer.form
r152 r158 4 4 <Properties> 5 5 <Property name="defaultCloseOperation" type="int" value="3"/> 6 <Property name="title" type="java.lang.String" value="ATMS Batch Driver"/> 6 7 </Properties> 7 8 <SyntheticProperties> -
trunk/src/tmcsim/client/ATMSBatchViewer.java
r152 r158 75 75 76 76 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 77 setTitle("ATMS Batch Driver"); 77 78 78 79 lstEvents.setFont(new java.awt.Font("Noto Mono", 0, 12)); // NOI18N
Note: See TracChangeset
for help on using the changeset viewer.
