forked from rictic/code_swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to fetch repository-logs at runtime.
Using runrepositoryfetch.bat, the user is now able to start codeswarm alternatively with a swing-frame. This frame asks the user for a repository location, a username and a password for the repository. It is able to connect to any svn-repository, since it uses svnkit to fetch the repository-log. The repository-log gets fetched and converted to the xml-format, codeswarm expects as input. The xml-file is cached until the latestRevision of the remote repository changes. See javadoc for detailed information. git-svn-id: http://codeswarm.googlecode.com/svn/trunk@235 eda9c206-d64f-0410-a2f2-67f3fa0499ed
- Loading branch information
kraeusen
committed
Aug 7, 2008
1 parent
fb9feea
commit 5d0452a
Showing
15 changed files
with
1,173 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#see http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/LogManager.html | ||
.level=SEVERE | ||
org.codeswarm.level=FINEST | ||
handlers=java.util.logging.ConsoleHandler | ||
java.util.logging.ConsoleHandler.level = ALL |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@ECHO OFF | ||
REM run.bat : code_swarm launching script | ||
REM need the config file as first parameter | ||
|
||
REM TODO : take care of multiple parameters | ||
SET params="%1" | ||
set default_config="data/sample.config" | ||
|
||
REM basic command line parameters check | ||
IF %params%=="" ( | ||
REM asking user for a config file | ||
ECHO Specify a config file, or type | ||
SET /p params="ENTER for default one [%default_config%] : " | ||
) | ||
IF %params%=="" ( | ||
SET params=%default_config% | ||
) | ||
|
||
REM help requested ? | ||
IF "%1"=="/?" goto help | ||
IF "%1"=="/H" goto help | ||
IF "%1"=="-h" goto help | ||
IF "%1"=="--help" goto help | ||
goto binaryCheck | ||
:help | ||
REM if help needed, print it and exit | ||
echo usage: run configfile | ||
echo data/sample.config is the default config file" | ||
exit | ||
|
||
:binaryCheck | ||
REM checking for code_swarm java binaries | ||
IF NOT EXIST dist\code_swarm.jar ( | ||
echo no code_swarm binaries ! | ||
echo needing to build it with 'ant' and 'javac' java-sdk | ||
echo auto-trying the ant command... | ||
call ant | ||
) | ||
|
||
REM running | ||
REM echo %params% | ||
echo code_swarm project ! | ||
java -Xmx1000m -classpath dist/code_swarm.jar;lib/core.jar;lib/xml.jar;lib/vecmath.jar;lib/svnkit.jar;lib/swing-layout-1.0.3.jar;. MainView %params% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> | ||
<Properties> | ||
<Property name="defaultCloseOperation" type="int" value="2"/> | ||
</Properties> | ||
<SyntheticProperties> | ||
<SyntheticProperty name="formSizePolicy" type="int" value="1"/> | ||
</SyntheticProperties> | ||
<AuxValues> | ||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> | ||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> | ||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> | ||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> | ||
</AuxValues> | ||
|
||
<Layout> | ||
<DimensionLayout dim="0"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" attributes="0"> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" attributes="0"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/> | ||
<Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/> | ||
<Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Component id="userName" pref="305" max="32767" attributes="0"/> | ||
<Component id="repositoryURL" alignment="0" pref="305" max="32767" attributes="0"/> | ||
<Component id="password" alignment="0" pref="305" max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
<Group type="102" alignment="1" attributes="0"> | ||
<Component id="clearCache" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace pref="242" max="32767" attributes="0"/> | ||
<Component id="goButton" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
</Group> | ||
<EmptySpace max="-2" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
<DimensionLayout dim="1"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="3" attributes="0"> | ||
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> | ||
<Component id="repositoryURL" alignment="3" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="3" attributes="0"> | ||
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/> | ||
<Component id="userName" alignment="3" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="3" attributes="0"> | ||
<Component id="password" alignment="3" min="-2" max="-2" attributes="0"/> | ||
<Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
<EmptySpace type="unrelated" max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="3" attributes="0"> | ||
<Component id="goButton" alignment="3" min="-2" max="-2" attributes="0"/> | ||
<Component id="clearCache" alignment="3" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
<EmptySpace max="32767" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
</Layout> | ||
<SubComponents> | ||
<Component class="javax.swing.JLabel" name="jLabel1"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="RepositoryURL"/> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JLabel" name="jLabel2"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="Username"/> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JLabel" name="jLabel3"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="Password"/> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JTextField" name="repositoryURL"> | ||
</Component> | ||
<Component class="javax.swing.JTextField" name="userName"> | ||
</Component> | ||
<Component class="javax.swing.JPasswordField" name="password"> | ||
</Component> | ||
<Component class="javax.swing.JButton" name="goButton"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="GO"/> | ||
</Properties> | ||
<Events> | ||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="goButtonActionPerformed"/> | ||
</Events> | ||
</Component> | ||
<Component class="javax.swing.JButton" name="clearCache"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="Clear Cache"/> | ||
</Properties> | ||
<Events> | ||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="clearCacheActionPerformed"/> | ||
</Events> | ||
</Component> | ||
</SubComponents> | ||
</Form> |
Oops, something went wrong.