You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/07/24 23:59:10 UTC

cvs commit: jakarta-commons/launcher/example/src/bin demo.bat demo.sh launcher.properties launcher.xml

dirkv       2004/07/24 14:59:10

  Added:       launcher/example/src/bin demo.bat demo.sh
                        launcher.properties launcher.xml
  Log:
  start application using launcher
  
  Revision  Changes    Path
  1.1                  jakarta-commons/launcher/example/src/bin/demo.bat
  
  Index: demo.bat
  ===================================================================
  @echo off
  REM   Copyright 2002-2004 The Apache Software Foundation
  REM
  REM   Licensed under the Apache License, Version 2.0 (the "License");
  REM   you may not use this file except in compliance with the License.
  REM   You may obtain a copy of the License at
  REM
  REM       http://www.apache.org/licenses/LICENSE-2.0
  REM
  REM   Unless required by applicable law or agreed to in writing, software
  REM   distributed under the License is distributed on an "AS IS" BASIS,
  REM   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  REM   See the License for the specific language governing permissions and
  REM   limitations under the License.
  
  java -cp . LauncherBootstrap -executablename launcher-demo demo
  
  
  
  1.1                  jakarta-commons/launcher/example/src/bin/demo.sh
  
  Index: demo.sh
  ===================================================================
  #!/bin/sh
  #   Copyright 2002-2004 The Apache Software Foundation
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   distributed under the License is distributed on an "AS IS" BASIS,
  #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #   See the License for the specific language governing permissions and
  #   limitations under the License.
  
  java -cp . LauncherBootstrap -executablename launcher-demo demo
  
  
  
  1.1                  jakarta-commons/launcher/example/src/bin/launcher.properties
  
  Index: launcher.properties
  ===================================================================
  #   Copyright 2002-2004 The Apache Software Foundation
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   distributed under the License is distributed on an "AS IS" BASIS,
  #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #   See the License for the specific language governing permissions and
  #   limitations under the License.
  
  ant.class.path=../lib/launcher/ant.jar:../lib/launcher/ant-launcher.jar:../lib/launcher/xercesImpl.jar:../lib/launcher/xml-apis.jar
  
  
  
  1.1                  jakarta-commons/launcher/example/src/bin/launcher.xml
  
  Index: launcher.xml
  ===================================================================
  <!--
     Copyright 2002-2004 The Apache Software Foundation
  
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
  -->
  <project name="Demo Launcher" default="demo" basedir=".">
  
      <property name="base.dir" value="${basedir}/.."/>
  
      <property name="etc.dir" value="${base.dir}/etc"/>
      <property name="lib.dir" value="${base.dir}/lib"/>
      <property name="log.dir" value="${base.dir}/log"/>
  
      <path id="base.class.path">
          <pathelement path="${etc.dir}"/>
          <fileset dir="${lib.dir}" includes="*.jar"/>
      </path>
  
      <target name="demo">
          <mkdir dir="${log.dir}" />
          <launch classname="org.apache.launcher.example.Main">
              <classpath refid="base.class.path"/>
              <syspropertyset>
                  <sysproperty key="log.dir" file="${log.dir}"/>
              </syspropertyset>
          </launch>
      </target>
  </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org