User: andreas 
  Date: 00/11/19 15:28:53

  Added:       examples/jboss.admin/build build.bat build.sh build.xml
  Log:
  First draft for a jBoss Administration GUI with EJX.
  At the moment it just uses the JMX Connector to
  connect to the jBoss server and list all the services but
  you cannot do anything more that this for now.
  
  Revision  Changes    Path
  1.1                  ejx/examples/jboss.admin/build/build.bat
  
  Index: build.bat
  ===================================================================
  @echo off
  @if not "%ECHO%" == ""  echo %ECHO%
  @if "%OS%" == "Windows_NT"  setlocal
  
  REM convenience bat file to build with
  
  set LIB=..\..\..\lib
  set CP=%LIB%\ant.jar
  set CP=%CP%;%LIB%\xml.jar
  set CP=%CP%;%LIB%\xmlbeans.jar
  set CP=%CP%;%LIB%\javac.jar
  set CP=%CP%;..\build\classes
  
  java -classpath "%CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
  
  
  
  1.1                  ejx/examples/jboss.admin/build/build.sh
  
  Index: build.sh
  ===================================================================
  #! /bin/sh
  
  # $Id: build.sh,v 1.1 2000/11/19 23:28:53 andreas Exp $
  
  LIB=../../../lib/build
  TARGET_CLASSPATH=$LIB/ant.jar:\
  $LIB/xml.jar:\
  $LIB/xmlbeans.jar:\
  $LIB/lib/javac.jar
  $LIB/build/classes:\
  
  java -classpath $TARGET_CLASSPATH org.apache.tools.ant.Main $*
  
  
  
  1.1                  ejx/examples/jboss.admin/build/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- ======================================================================= -->
  <!-- EJB Example for EJX build file                                          -->
  <!-- ======================================================================= -->
  
  <project name="EJX: jBoss Admin First Draft" default="main" basedir="../../..">
    <target name="init">
      <taskdef name="xmlbean" classname="com.dreambean.xmlbeans.ant.XMLBeans"/>
      
      <property name="Name" value="jBoss.Admin"/>
      <property name="name" value="jBoss.admin"/>
      <property name="version" value="0.1"/>
  
        <!-- Properties specific for this EJX plugin -->
        <!-- This property is used to define the name of the Manifest file and the Jar 
file -->
      <property name="plugin.name" value="ejx.jboss.admin"/>
      <property name="plugin.dir" value="${basedir}/examples/jboss.admin"/>
  
        <!-- EJX Project related directories -->
      <property name="lib.dir" value="${basedir}/lib"/>
      <property name="lib.ext.dir" value="${lib.dir}/ext"/>
      <property name="docs.dir" value="${basedir}/docs"/>
      <property name="dist.dir" value="${basedir}/dist"/>
      <property name="dist.lib.ext.dir" value="${dist.dir}/lib/ext"/>
  
        <!-- EJX Plugin related directories -->
      <property name="src.dir" value="${plugin.dir}/src"/>
      <property name="local.lib.ext.dir" value="${plugin.dir}/lib/ext"/>
      <property name="etc.dir" value="${plugin.dir}/etc"/>
      <property name="conf.dir" value="${plugin.dir}/conf"/>
      <property name="build.dir" value="${plugin.dir}/build/out"/>
      <property name="build.bin.dir" value="${build.dir}/bin"/>
      <property name="build.lib.dir" value="${build.dir}/lib"/>
      <property name="build.src.dir" value="${build.dir}/src"/>
      <property name="build.classes.dir" value="${build.dir}/classes"/>
      <property name="build.javadocs.dir" value="${build.dir}/docs/api"/>
      
      <property name="classpath" 
value="${build.classes.dir};${lib.ext.dir}/awt.jar;${lib.ext.dir}/xml.jar;${local.lib.ext.dir}/jmxri.jar;${local.lib.ext.dir}/connector.jar;${dist.lib.ext.dir}/ejxeditor.jar"/>
      <property name="packages" value="org.jboss.jBossAdmin.*"/>
  
      <property name="build.compiler" value="classic"/>
      
    </target>
  
    <!-- =================================================================== -->
    <!-- Prepares the build directory                                        -->
    <!-- =================================================================== -->
    <target name="prepare" depends="init">
      <mkdir dir="${build.dir}"/>
    </target>
  
    <!-- =================================================================== -->
    <!-- Compiles the source code                                            -->
    <!-- =================================================================== -->
    <target name="compile" depends="prepare">
      <mkdir dir="${build.classes.dir}"/>
      <javac srcdir="${src.dir}"
             destdir="${build.classes.dir}"
             classpath="${classpath}"
             debug="off"
             deprecation="off"
             optimize="on"
      />
    </target>
  
    <!-- =================================================================== -->
    <!-- Create the  BeanInfo classes                              -->
    <!-- =================================================================== -->
    <target name="xmlbeans" depends="compile">
      <mkdir dir="${build.src.dir}"/>
      <xmlbean destdir="${build.src.dir}"
               srcdir="${etc.dir}/beaninfo"
               includes="**"
      />
      <javac srcdir="${build.src.dir}"
             destdir="${build.classes.dir}"
             classpath="${classpath}"
             debug="off"
             deprecation="off"
             optimize="on"
             includes="**/*BeanInfo.java"
      />
    </target>
    
    <!-- =================================================================== -->
    <!-- Creates the jar archives                                            -->
    <!-- =================================================================== -->
    <target name="jar" depends="compile,xmlbeans">
      <mkdir dir="${build.lib.dir}/ext"/>
      <jar jarfile="${build.lib.dir}/ext/${plugin.name}.jar"
           basedir="${build.classes.dir}"
           manifest="${etc.dir}/${plugin.name}.mf"
           includes="**"
      />
    </target>
    
    <!-- =================================================================== -->
    <!-- Creates the binary structure                                        -->
    <!-- =================================================================== -->
    <target name="main" depends="jar">
       <mkdir dir="${dist.dir}"/>
       <mkdir dir="${dist.dir}/lib/ext"/>
       <mkdir dir="${dist.dir}/conf"/>
  
       <copydir src="${build.lib.dir}/ext" dest="${dist.dir}/lib/ext"/>
       <copydir src="${local.lib.ext.dir}" dest="${dist.dir}/lib/ext"/>
       <copydir src="${conf.dir}" dest="${dist.dir}/conf"/>
    </target>
  
    <!-- =================================================================== -->
    <!-- Cleans up generated stuff                                           -->
    <!-- =================================================================== -->
    <target name="clean" depends="init">
      <deltree dir="${build.dir}"/>
    </target>
  </project>
  
  
  

Reply via email to