Changes

Jump to: navigation, search

User:Minooz/RepoSyncProj

1,376 bytes added, 12:45, 17 November 2010
no edit summary
=<big><big>'''Repositories' Syncing='''</big></big>
==Version Control Tool==
* Basic Tutorial @ http://hginit.com/
*6- To run JUnit Tests from command line:
: add the JUnit installation directory and the junit.jar file and also QTjava to the CLASSPATH. e.g. <code>CLASSPATH=".;D:\cygwin\home\java\junit3.0.1\junit.jar;C:\Program Files\java\jre6\lib\ext\QTjava"</code>
: to run a sample AllTests class go to the installation directory and run: <code> java junit.textui.TestRunner junit.samples.AllTests </code>: to run NexJ AllTests do::: build the model: go to ws/core/build/ run <code> ant </code> or <code> ant -f build_JUnitTest.xml</code> :: from command line: go to ws/out/core/ run <code> java junit.textui.TestRunner nexj.core.AllTests</code> (getting error IOExcpetion) so we just ran one test file <code> java junit.textui.TestRunner nexj.core.util.MathUtilTest </code>(We did some changes to <code> core/test/nexj/core/util</code> to practice with it) Or we can run the ant target for test: <code> ant -f build_JUnitTest.xml test </code>*7- Bugs after implementation at NexJ : Working with remote repository; getting tip and log from remote repository is not as simple as moving to local repo and get all the information we need.  : NexJ Internal repo has several branches, and when cloning and pulling, we just needed to mention it as a default branch, to not to confuse revision numbers and latest changesets.: Since the decimal part of the revision number will keep changing from computer to computer, it was preferred to use the global hex chagesetID (GUID).: So, the first big change was adding this command to get the list of latest changesets up to the tip:::<code>hg log ${IntDir} -r ${PrevRev}: -b default --template '{node}\n'</code>: This number will also be added to the commit summary while importing the patch from Internal repo
1
edit

Navigation menu