68
Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman [email protected] 26 December 2007

Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman [email protected]

Embed Size (px)

Citation preview

Page 1: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans 6.0 version control configuration

for AUV Workbench & various XMSF projects

TODO: check changes in all Netbeans 5 screens

Don Brutzman

[email protected]

26 December 2007

Page 2: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans setup 1

• Install latest Java 1.6, Netbeans 6.0– Bundled version works well:

http://www.netbeans.org – http://java.sun.com or

http://java.sun.com/j2se/1.6.0/download.jsp– Further Java setup checks– Ensure no other versions of Java or Netbeans

installed– Ensure JAVA_HOME properly set– Netbeans Tools -> Update Center for updates

Page 3: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans setup 2

• Netbeans – Tools – Update Center• Update all modules for latest greatest

Page 4: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans cvs project setup 3

• Don’t enable old version control

• Enable updated version control

Page 5: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans cvs project setup 4

• Suggested target locations– C:\auv\AuvWorkbench– C:\CvsProjects\DisJavaProject– C:\CvsProjects\DisXmlProject– C:\CvsProjects\SavageStudioProject– C:\CvsProjects\ViskitProject– C:\CvsProjects\XsbcProject

• CVS module names AuvWorkbench disjava disxml SavageStudio Viskit+Diskit xsbc

• Create meaningful target directories– Having common parent directory is helpful

• Select or enter module name – during initial CVS checkout

Page 6: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans cvs project setup 5

• Basic setup procedure simpler than 4.0– No more ‘Versioning’ panel to fool with

• Simple two-part process– Check out via cvs– Click to Create Project

• Avoid importing 4.1 settings, they may fail• Follow-on directions show type-in values

blocked out in red– Other values are usually found automatically

Page 7: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans cvs project setup 6

• Server-side authentication keys must be cached prior to initial cvs checkout

• Use the PuTTy tool to secure-shell (ssh) into the cvs server– Example: xmsf.cvs.sourceforge.net

• Log in using checkout account name

• Screen snapshots follow

Page 8: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

PuTTY initialization of ssh key

1

2 3

4

Necessary step for softwaredevelopers prior to cvs checkout

Page 9: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Additional developers setup 1

• Developers making and committing source changes into one of the cvs archives need to first install putty tools, then get account

• Putty security tools:– http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

• Requesting a developer account: – Don McGregor (xmsf) [email protected] – Arnie Buss (Simkit) [email protected]

Page 10: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Additional developers setup 2

• wincvs is separate alternative, usually not needed– http://www.wincvs.org/download.html

Page 11: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Configure Netbeans defaults to support greater memory

• C:\Program Files\netbeans-5.0\etc

• Edit file netbeans.conf– netbeans_default_options="-J-Xms32m -J-Xmx128m (etc.) changed to

– netbeans_default_options="-J-Xms32m -J-Xmx1024m

Page 12: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

New Netbeans 5.0 cvs features

• Top-level CVS menu

• Can update all projects at once

• Can show CVS committers by name and versions by number in text editor

• Features presentation: http://www.javalobby.org/eps/netbeans5

Page 13: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Note committer names, line by line

Page 14: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 15: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Further resources

• Tutorial by Arnie Buss on Netbeans use provides further background and details http://diana.cs.nps.navy.mil/~ahbuss/CVSNetbeans

• Don McGregor's slideset guides to Concurrent Version System (CVS),

Using CVS with SSH Tunnels and Ant available online

• XMSF Bugtracker http://xchat.movesinstitute.org/bugzilla

Page 16: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

cvs checkout + project setup

AuvWorkbench disjava disxml

SavageStudio Viskit+Diskit xsbc

configuration troubleshooting

Page 17: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

AuvWorkbench project

https://www.movesinstitute.org/xmsf/xmsf.html#Projects-AUV

project index

Page 18: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

CVS Root::ext:[email protected]:/cvsroot/xmsf

Page 19: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Module to checkout: AuvWorkbenchLocal folder: c:\auv

Page 20: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Location: c:\auv\AuvWorkbench

Page 21: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Build and Run Actions are found automatically from build.xml

Page 22: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Source package folder: C:\auv\AuvWorkbench\src

Page 23: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Java sources classpath:c:\auv\AuvWorkbench\launchwb.jar

Page 24: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

dis-java project

project index

Page 25: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

CVS Root::ext:[email protected]:/cvsroot/xmsf

Page 26: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Module to checkout: disjavaLocal folder: C:\CvsProjects\DisJavaProject

Page 27: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 28: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Build and Run Actions are found automatically from build.xml

Page 29: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 30: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

dis-xml project

project index

Page 31: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

CVS Root::ext:[email protected]:/cvsroot/xmsf

Page 32: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Module to checkout: disxmlLocal folder: C:\CvsProjects\DisXmlProject

Page 33: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 34: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Location: C:\CvsProjects\DisXmlProject\disxmlProject Name: disxml

Page 35: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Build and Run Actions are found automatically from build.xml

Page 36: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 37: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

SavageStudio project

project index

Page 38: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

CVS Root::ext:[email protected]:/cvsroot/xmsf

Page 39: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Module: SavageStudioLocal Folder: C:\CvsProjects\SavageStudioProject

Page 40: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 41: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Location: C:\CvsProjects\SavageStudioProject\SavageStudio

Page 42: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Build and Run Actions are found automatically from build.xml

Page 43: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Source package folders

Page 44: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Simkit/Viskit/Diskit/Gridkit

Discrete-event simulation (DES)

project index

Page 45: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

subversion Root: https://eos.nps.edu/wcm/Viskit/trunk

Anonymous access not permitted, POC [email protected]

Page 46: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

accept server signature

Page 47: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

browse folders, select trunk for checkout

Page 48: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

checkout to local disk directory(same root locations for Viskit, Diskit)

Page 49: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Netbeans checkout in progress..

Page 50: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Following default checkout, run build-run-default-plain

Page 51: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

build-run-default-plain result

Here is current default screen, ready to open/create event graphs or assemblies.

Page 52: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

subversion Root: https://eos.nps.edu/wcm/DISKIT/trunk

Anonymous access not permitted, POC [email protected]

Page 53: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

browse folders, select trunk for checkout

Page 54: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

checkout to local disk directory (same root locations for Viskit, Diskit)

Page 55: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

open project following checkout

DISKIT does not need to be built, that is instead triggered by Viskit build.xml task build.examples

Page 56: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

xsbc project

XML Schema-based Binary Compression

project index

Page 57: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

CVS Root::ext:[email protected]:/cvsroot/xmsf

Page 58: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Module to checkout: xsbcLocal folder: C:\CvsProjects\XsbcProject

Page 59: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu
Page 60: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Location: C:\CvsProjects\XsbcProject\xsbc

Page 61: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Build and Run Actions are found automatically from build.xml

Page 62: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Configuration Troubleshooting

project index

Page 63: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Setting main project preference

• Main project selection governs assignment of toolbar buttons at top

• Select Projects tab

• Right-click desired main project

• Set main project preference

Build

Page 64: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

cvs update problem: use external shellSSH command: c:\Program Files\PuTTY\plink.exe

Page 65: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

CVS update problem:

can’t reset “sticky bits”

Repeat cvs update, check Reset box

check this box to reset

Page 66: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

Not yet ready…

Page 67: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

TOPTIVA

C:\CvsProjects\ToptivaProject

project index

Page 68: Netbeans 6.0 version control configuration for AUV Workbench & various XMSF projects TODO: check changes in all Netbeans 5 screens Don Brutzman brutzman@nps.edu

• CVS archive on surfaris

• Need ssh script to connect

• Site may change due to server reconfigurations