User: slaboure
  Date: 01/08/15 10:03:55

  Added:       src/examples/org/jboss/docs/appletclient build.xml
                        Default.html
  Log:
  Build.xml and HTML page used by the appletclient example.
  
  Revision  Changes    Path
  1.1                  manual/src/examples/org/jboss/docs/appletclient/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  <!-- An Ant build file for the ClientApplet EJB example
  -->
  
  <project name="Applet Client Build Script" default="ejb-jar" basedir=".">
  
      <property name="build.appletclient.dir" 
value="${basedir}/build-examples/appletclient"/>
      <property name="build.classes.dir" 
value="${basedir}/build-examples/appletclient/classes"/>
  
      <target name="compile">
        <mkdir dir="${build.classes.dir}"/>
        <javac srcdir="${src.dir}"
             destdir="${build.classes.dir}"
             debug="on"
             deprecation="on"
             optimize="off"
        >
         <classpath path="${classpath}" />
         <include name="org/jboss/docs/appletclient/**/*.java" />
        </javac>
      </target>
  
      <!-- Tutorial ejb jar -->
      <target name="ejb-jar" depends="compile">
          <delete dir="${build.appletclient.dir}/META-INF"/>
          <mkdir dir="${build.appletclient.dir}/META-INF"/>
          <copy file="${src.dir}/org/jboss/docs/appletclient/ejb/ejb-jar.xml" 
todir="${build.appletclient.dir}/META-INF" />
          <!--copy file="${src.dir}/org/jboss/docs/appletclient/jboss.xml" 
todir="${build.appletclient.dir}/META-INF" /-->
          <jar jarfile="${build.appletclient.dir}/AppletClientEJB.jar">
              <fileset dir="${build.classes.dir}">
                  <include name="org/jboss/docs/appletclient/ejb/*.class" />
                  <include name="org/jboss/docs/appletclient/interfaces/*.class" />
              </fileset>
              <fileset dir="${build.appletclient.dir}">
                  <include name="META-INF/ejb-jar.xml" />
                  <!--include name="META-INF/jboss.xml" /-->
              </fileset>
          </jar>
      </target>
  
      <target name="deploy-ejb-jar" depends="ejb-jar">
          <copy file="${build.appletclient.dir}/AppletClientEJB.jar" 
todir="${jboss.dist}/deploy" />
      </target>
  
      <target name="appletclient-client" depends="compile">
          <jar jarfile="${build.appletclient.dir}/AppletClient.jar">
              <fileset dir="${build.classes.dir}">
                  <include name="org/jboss/docs/appletclient/applet/*.class" />
                  <include name="org/jboss/docs/appletclient/interfaces/*.class" />
              </fileset>
          </jar>
          <copy file="${src.dir}/org/jboss/docs/appletclient/default.html" 
todir="${build.appletclient.dir}" />
  
          <copy file="${build.appletclient.dir}/default.html" 
todir="${jboss.dist}/client" />
          <copy file="${build.appletclient.dir}/AppletClient.jar" 
todir="${jboss.dist}/client" />
      </target>
  </project>
  
  
  
  1.1                  manual/src/examples/org/jboss/docs/appletclient/Default.html
  
  Index: Default.html
  ===================================================================
  <HTML>
  <HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  <TITLE>
  HTML Test Page
  </TITLE>
  </HEAD>
  <BODY>
  Here is the demo Applet for EJB access coming below...<BR>
  
  <!--"CONVERTED_APPLET"-->
  <!-- CONVERTER VERSION 1.3 -->
  <SCRIPT LANGUAGE="JavaScript"><!--
      var _info = navigator.userAgent; var _ns = false;
      var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && 
_info.indexOf("Windows 3.1") < 0);
  //--></SCRIPT>
  <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
      var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") 
> 0 && _info.indexOf("Win16") < 0 && 
java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || 
(_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
  //--></SCRIPT></COMMENT>
  
  <SCRIPT LANGUAGE="JavaScript"><!--
      if (_ie == true) document.writeln('<OBJECT 
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 100 NAME = 
"AppletEjbCaller"  
codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0";><NOEMBED><XMP>');
      else if (_ns == true) document.writeln('<EMBED 
type="application/x-java-applet;version=1.3"  CODE = 
"org.jboss.docs.appletclient.applet.AppletEjbCaller" CODEBASE = "." ARCHIVE = 
"AppletClient.jar, jboss-client.jar, jboss-j2ee.jar, jbosssx-client.jar, 
jnp-client.jar, jndi.jar, jaas.jar" NAME = "AppletEjbCaller" WIDTH = 400 HEIGHT = 100  
scriptable=false 
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html";><NOEMBED><XMP>');
  //--></SCRIPT>
  <APPLET  CODE = "org.jboss.docs.appletclient.applet.AppletEjbCaller" CODEBASE = "." 
ARCHIVE = "AppletClient.jar, jboss-client.jar, jboss-j2ee.jar, jbosssx-client.jar, 
jnp-client.jar, jndi.jar, jaas.jar" WIDTH = 400 HEIGHT = 100 NAME = 
"AppletEjbCaller"></XMP>
  <PARAM NAME = CODE VALUE = "org.jboss.docs.appletclient.applet.AppletEjbCaller" >
  <PARAM NAME = CODEBASE VALUE = "." >
  <PARAM NAME = ARCHIVE VALUE = "AppletClient.jar, jboss-client.jar, jboss-j2ee.jar, 
jbosssx-client.jar, jnp-client.jar, jndi.jar, jaas.jar" >
  <PARAM NAME = NAME VALUE = "AppletEjbCaller" >
  
  <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
  <PARAM NAME="scriptable" VALUE="false">
  
  </APPLET>
  
  </NOEMBED></EMBED></OBJECT>
  
  
  <!--
  <APPLET CODE = "org.jboss.docs.appletclient.applet.AppletEjbCaller" CODEBASE = "." 
ARCHIVE = "AppletClient.jar, jboss-client.jar, jboss-j2ee.jar, jbosssx-client.jar, 
jnp-client.jar, jndi.jar, jaas.jar" WIDTH = 400 HEIGHT = 100 NAME = "AppletEjbCaller">
  
  
  </APPLET>
  -->
  <!--"END_CONVERTED_APPLET"-->
  
  
  
  </BODY>
  </HTML>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to