Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2515 - in development/main/depot/console: . etc etc/bin src/main/net/dpml/depot/console

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2515 - in development/main/depot/console: . etc etc/bin src/main/net/dpml/depot/console
  • Date: Wed, 11 May 2005 16:24:36 +0000

Author: mcconnell AT dpml.net
Date: Wed May 11 16:24:34 2005
New Revision: 2515

Added:
development/main/depot/console/etc/
development/main/depot/console/etc/bin/
development/main/depot/console/etc/bin/depot.bat
development/main/depot/console/etc/bin/security.policy
Modified:
development/main/depot/console/build.xml
development/main/depot/console/src/main/net/dpml/depot/console/Main.java
Log:
add a depot cli script (windows only for the moment)

Modified: development/main/depot/console/build.xml
==============================================================================
--- development/main/depot/console/build.xml (original)
+++ development/main/depot/console/build.xml Wed May 11 16:24:34 2005
@@ -6,4 +6,28 @@

<transit:import uri="artifact:template:dpml/magic/standard"/>

+ <target name="init" depends="standard.init">
+ <property name="depot.w32.main"
value="dpml\depot\jars\dpml-depot-console-${project.version}.jar"/>
+ <filter token="DEPOT-PATH-FOR-WINDOWS" value="${depot.w32.main}" />
+ </target>
+
+ <target name="install" depends="standard.install">
+ <echo>
+#----------------------------------------------------------------------------------
+# Updating DPML SYSTEM ${dpml.system}
+#----------------------------------------------------------------------------------
+ </echo>
+ <copy todir="${dpml.system}" preservelastmodified="true">
+ <fileset dir="target">
+ <include name="bin/**"/>
+ </fileset>
+ </copy>
+ <chmod perm="755">
+ <fileset dir="${dpml.system}/bin">
+ <include name="**/*.sh"/>
+ <include name="**/transit"/>
+ </fileset>
+ </chmod>
+ </target>
+
</project>

Added: development/main/depot/console/etc/bin/depot.bat
==============================================================================
--- (empty file)
+++ development/main/depot/console/etc/bin/depot.bat Wed May 11 16:24:34
2005
@@ -0,0 +1,33 @@
+@echo off
+
+rem -------------------------- DEPOT CLI
---------------------------------------------------
+
+setlocal
+
+rem set JAVA CMD
+if not "%JAVA_HOME%" == "" goto USE_JAVA_HOME
+
+set JAVA=java
+
+goto SET_DEPOT
+
+:USE_JAVA_HOME
+set JAVA="%JAVA_HOME%\bin\java"
+
+:SET_DEPOT
+if "%DPML_HOME%" == "" set DPML_HOME=%APPDATA%\DPML
+if "%DPML_SYSTEM%" == "" set DPML_SYSTEM=%DPML_HOME%\Shared
+if "%DPML_DEPOT_JAR%" == "" set DPML_DEPOT_JAR=@DEPOT-PATH-FOR-WINDOWS@
+
+set $CACHED="%DPML_HOME%\Data\cache\%DPML_DEPOT_JAR%"
+set $LIBRARY="%DPML_SYSTEM%\local\%DPML_DEPOT_JAR%"
+if EXIST %$CACHED% ( set $CLASSPATH=%$CACHED% ) ELSE ( set
$CLASSPATH=%$LIBRARY% )
+set $POLICY=-Djava.security.policy="%DPML_SYSTEM%\bin\security.policy"
+set $ARGS=%*
+
+:RUN_DEPOT
+%JAVA% -Djava.system.class.loader=net.dpml.depot.console.DepotClassLoader
%$POLICY% %CLASSLOADER% %DEPOT_JVM_OPTS% -classpath %$CLASSPATH%
net.dpml.depot.console.Main %DEPOT_ARGS% %$ARGS%
+goto EndOfScript
+:EndOfScript
+
+endlocal

Added: development/main/depot/console/etc/bin/security.policy
==============================================================================
--- (empty file)
+++ development/main/depot/console/etc/bin/security.policy Wed May 11
16:24:34 2005
@@ -0,0 +1,4 @@
+grant {
+ permission java.security.AllPermission;
+};
+

Modified:
development/main/depot/console/src/main/net/dpml/depot/console/Main.java
==============================================================================
--- development/main/depot/console/src/main/net/dpml/depot/console/Main.java
(original)
+++ development/main/depot/console/src/main/net/dpml/depot/console/Main.java
Wed May 11 16:24:34 2005
@@ -220,7 +220,7 @@
return root.node( profile );
}
}
- return null;
+ return root.node( "prefs" );
}

/**



  • svn commit: r2515 - in development/main/depot/console: . etc etc/bin src/main/net/dpml/depot/console, mcconnell, 05/11/2005

Archive powered by MHonArc 2.6.24.

Top of Page