[jboss-cvs] JBoss Profiler SVN: r594 - in branches/JBossProfiler2: ant and 16 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Nov 28 11:35:12 EST 2010


Author: jesper.pedersen
Date: 2010-11-28 11:35:11 -0500 (Sun, 28 Nov 2010)
New Revision: 594

Added:
   branches/JBossProfiler2/ant/build.xml
   branches/JBossProfiler2/connectors/build.xml
   branches/JBossProfiler2/connectors/src/main/resources/
   branches/JBossProfiler2/connectors/src/main/resources/connectors-manifest.mf
   branches/JBossProfiler2/embedded/build.xml
   branches/JBossProfiler2/embedded/src/main/resources/
   branches/JBossProfiler2/embedded/src/main/resources/embedded-manifest.mf
   branches/JBossProfiler2/integration/build.xml
   branches/JBossProfiler2/integration/src/main/resources/
   branches/JBossProfiler2/integration/src/main/resources/integration-manifest.mf
   branches/JBossProfiler2/integration/src/main/resources/jboss-service.xml
   branches/JBossProfiler2/native/build.xml
   branches/JBossProfiler2/plugins/build.xml
   branches/JBossProfiler2/plugins/src/main/resources/
   branches/JBossProfiler2/plugins/src/main/resources/plugins-manifest.mf
   branches/JBossProfiler2/web/build.xml
Removed:
   branches/JBossProfiler2/core/src/main/resources/connectors-manifest.mf
   branches/JBossProfiler2/core/src/main/resources/embedded-manifest.mf
   branches/JBossProfiler2/core/src/main/resources/jboss-service.xml
Modified:
   branches/JBossProfiler2/build.xml
   branches/JBossProfiler2/client/build.xml
Log:
[JBPROFILER-113] Split source into modules - not complete

Added: branches/JBossProfiler2/ant/build.xml
===================================================================
--- branches/JBossProfiler2/ant/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/ant/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,63 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-ant" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.ant.dir" value="${build.dir}/ant" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.ant.dir}" />
+    <mkdir dir="${build.ant.dir}/impl" />
+
+    <javac srcdir="src/main/java"
+           destdir="${build.ant.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <copy todir="${build.ant.dir}/impl/org/jboss/profiler/ant">
+      <fileset dir="src/main/resources">
+        <include name="**/antlib.xml"/>
+      </fileset>
+    </copy>
+
+    <jar destfile="${target.dir}/${jboss-profiler-ant.jar}"
+         basedir="${build.ant.dir}/impl"
+         manifest="src/main/resources/ant-manifest.mf"/>
+  </target>
+
+</project>

Modified: branches/JBossProfiler2/build.xml
===================================================================
--- branches/JBossProfiler2/build.xml	2010-11-27 17:12:23 UTC (rev 593)
+++ branches/JBossProfiler2/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -9,11 +9,6 @@
   <property name="lib.dir" value="${basedir}/lib"/>
   <property name="doc.dir" value="${basedir}/doc"/>
   <property name="doc.api.dir" value="${doc.dir}/api"/>
-  <property name="src.dir" value="${basedir}/src"/>
-  <property name="src.main.dir" value="${src.dir}/main"/>
-  <property name="src.main.jdk16.dir" value="${src.dir}/jdk16/main"/>
-  <property name="src.test.dir" value="${src.dir}/test"/>
-  <property name="etc.dir" value="${src.dir}/etc"/>
   <property name="target.dir" value="${basedir}/target"/>
   <property name="tools.dir" value="${basedir}/tools"/>
   <property name="reports.dir" value="${basedir}/reports"/>
@@ -67,7 +62,6 @@
   <property name="jboss-profiler-jvmti.jar" value="jboss-profiler-jvmti.jar"/>
   <property name="jboss-profiler-plugins.jar" value="jboss-profiler-plugins.jar"/>
   <property name="jboss-profiler-precompiler.jar" value="jboss-profiler-precompiler.jar"/>
-  <property name="jboss-profiler-test.jar" value="jboss-profiler-test.jar"/>
   <property name="jboss-profiler.jar" value="jboss-profiler.jar"/>
   <property name="jboss-profiler.sar" value="jboss-profiler.sar"/>
   <property name="jboss-profiler.war" value="jboss-profiler.war"/>
@@ -162,337 +156,16 @@
   <target name="jars" depends="prepare">
     <ant dir="core" inheritRefs="true" target="jars"/>
     <ant dir="client" inheritRefs="true" target="jars"/>
+    <ant dir="ant" inheritRefs="true" target="jars"/>
+    <ant dir="connectors" inheritRefs="true" target="jars"/>
+    <ant dir="embedded" inheritRefs="true" target="jars"/>
+    <ant dir="plugins" inheritRefs="true" target="jars"/>
+    <ant dir="integration" inheritRefs="true" target="jars"/>
+    <!-- <ant dir="native" inheritRefs="true" target="jars"/> -->
+    <!-- <ant dir="web" inheritRefs="true" target="jars"/> -->
   </target>
   
   <!-- =================================================================== -->
-  <!-- Ant                                                                 -->
-  <!-- =================================================================== -->
-  <target name="ant" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    <copy todir="${build.dir}/org/jboss/profiler/ant">
-      <fileset dir="${etc.dir}">
-        <include name="**/antlib.xml"/>
-      </fileset>
-    </copy>
-    <jar destfile="${target.dir}/${jboss-profiler-ant.jar}"
-         basedir="${build.dir}"
-         manifest="${etc.dir}/ant-manifest.mf"
-         includes="org/jboss/profiler/ant/**,org/jboss/profiler/shared/**,**/*.xml"
-         excludes="**/*.java"/>
-  </target>
-
-  <!-- =================================================================== -->
-  <!-- Connectors                                                          -->
-  <!-- =================================================================== -->
-  <target name="connectors" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    <jar destfile="${target.dir}/${jboss-profiler-connectors.jar}"
-         basedir="${build.dir}"
-         manifest="${etc.dir}/connectors-manifest.mf"
-         includes="org/jboss/profiler/connectors/**"
-         excludes="**/*.java"/>
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- Embedded                                                            -->
-  <!-- =================================================================== -->
-  <target name="embedded" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    <copy todir="${build.dir}">
-      <fileset dir="${etc.dir}">
-        <include name="**/jboss-profiler.properties"/>
-        <include name="**/log4j.xml"/>
-      </fileset>
-    </copy>
-    <!--
-        <unzip src="${lib.dir}/jboss-common.jar" dest="${build.dir}">
-        <patternset>
-        <include name="org/jboss/logging/**"/>
-        </patternset>
-        </unzip>
-    -->
-    <jar destfile="${target.dir}/${jboss-profiler-embedded.jar}"
-         basedir="${build.dir}"
-         manifest="${etc.dir}/embedded-manifest.mf"
-         includes="org/jboss/profiler/agent/**,org/jboss/profiler/embedded/**,org/jboss/profiler/shared/**,org/jboss/logging/**,**/*.properties,**/*.xml"
-         excludes="**/*.java"/>
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- JVMTI                                                               -->
-  <!-- =================================================================== -->
-  <target name="jvmti-jdk16" if="AVAILABLE_JDK_1.6">
-    <echo message="compiling"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        depend="false"
-        failonerror="true">
-      <src path="${src.main.jdk16.dir}"/>
-      
-    </javac>
-  </target>
-  
-  <target name="jvmti" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        depend="false"
-        failonerror="true"
-        >
-      <src path="${src.main.dir}">
-      </src>
-      <include name="org/jboss/profiler/jvmti/**/*.java" />
-      
-    </javac>
-    
-    <antcall target="jvmti-jdk16"/>
-    
-    <copy todir="${build.dir}">
-      <fileset dir="${etc.dir}">
-        <include name="**/jboss-profiler.properties"/>
-        <include name="**/log4j.xml"/>
-      </fileset>
-    </copy>
-    <!--
-        <unzip src="${lib.dir}/jboss-common.jar" dest="${build.dir}">
-        <patternset>
-        <include name="org/jboss/logging/**"/>
-        </patternset>
-        </unzip>
-    -->
-    <jar destfile="${target.dir}/${jboss-profiler-jvmti.jar}"
-         basedir="${build.dir}"
-         manifest="${etc.dir}/embedded-manifest.mf"
-         includes="org/jboss/profiler/jvmti/**"
-         excludes="**/*.java"/>
-    
-    <javah class="org.jboss.profiler.jvmti.JVMTIInterface"  destdir="${native-src-dir}" classpathref="test.class.path"/>
-    
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- Plugins                                                             -->
-  <!-- =================================================================== -->
-  <target name="plugins" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    
-    <jar destfile="${target.dir}/${jboss-profiler-plugins.jar}"
-         basedir="${build.dir}"
-         includes="org/jboss/profiler/plugins/**"
-         excludes="**/*.java"/>
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- Precompiler                                                         -->
-  <!-- =================================================================== -->
-  <target name="precompiler" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    <copy todir="${build.dir}">
-      <fileset dir="${etc.dir}">
-        <include name="**/log4j.xml"/>
-      </fileset>
-    </copy>
-    
-    <jar destfile="${target.dir}/${jboss-profiler-precompiler.jar}"
-         basedir="${build.dir}"
-         manifest="${etc.dir}/precompiler-manifest.mf"
-         includes="org/jboss/profiler/agent/**,org/jboss/profiler/client/precompiler/**,org/jboss/profiler/shared/**,**/*.xml"
-         excludes="**/*.java"/>
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- Web                                                                 -->
-  <!-- =================================================================== -->
-  <target name="web" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    
-    <war destfile="${target.dir}/${jboss-profiler.war}" webxml="${etc.dir}/web.xml">
-      <fileset dir="${src.main.dir}/www"/>
-      <lib dir="${lib.dir}">
-        <exclude name="asm.jar"/>
-        <exclude name="javassist.jar"/>
-        <exclude name="concurrent.jar"/>
-        <exclude name="ejb3-persistence.jar"/>
-        <exclude name="jboss-common.jar"/>
-        <exclude name="jboss-ejb3x.jar"/>
-        <exclude name="jboss-remoting.jar"/>
-        <exclude name="jbossall-client.jar"/>
-        <exclude name="jsf-api.jar"/>
-        <exclude name="jsf-impl.jar"/>
-        <exclude name="log4j.jar"/>
-        <exclude name="servlet.jar"/>
-      </lib>
-      <classes dir="${build.dir}">
-        <include name="org/jboss/profiler/client/*"/>
-        <include name="org/jboss/profiler/client/web/**"/>
-        <include name="org/jboss/profiler/shared/**"/>
-        <exclude name="**/*.java"/>
-      </classes>
-      <zipfileset dir="${etc.dir}/"
-                  prefix="WEB-INF">
-        <include name="faces-config.xml"/>
-        <include name="jboss-web.xml"/>
-        <include name="*.tld"/>
-      </zipfileset>
-      <zipfileset dir="${etc.dir}/"
-                  prefix="WEB-INF/classes">
-        <include name="*skin.properties"/>
-      </zipfileset>
-      <zipfileset dir="${src.main.dir}/resources"
-                  prefix="WEB-INF/classes/resources">
-        <include name="*.properties"/>
-      </zipfileset>
-    </war>
-    
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- Test                                                                -->
-  <!-- =================================================================== -->
-  <target name="test" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    
-    <mkdir dir="${build.dir}/WEB-INF"/>
-    <copy todir="${build.dir}/WEB-INF">
-      <fileset dir="${src.test.dir}/resources">
-        <include name="**/*.xml"/>
-      </fileset>
-    </copy>
-    
-    <javac
-        destdir="${build.dir}"
-        classpathref="test.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5" 
-        target="1.5"
-        >
-      <src path="${src.test.dir}/java"/>
-    </javac>
-    
-    <jar destfile="${target.dir}/${jboss-profiler-test.jar}"
-         basedir="${build.dir}"
-         excludes="**/*.java"/>
-    
-  </target>
-  
-  <!-- =================================================================== -->
-  <!-- SAR                                                                 -->
-  <!-- =================================================================== -->
-  <target name="sar" depends="prepare">
-    <delete dir="${build.dir}"/>
-    <mkdir dir="${build.dir}"/>
-    <javac
-        destdir="${build.dir}"
-        classpathref="web.class.path"
-        debug="on"
-        deprecation="on"
-        optimize="off"
-        source="1.5"
-        target="1.5"
-        >
-      <src path="${src.main.dir}"/>
-    </javac>
-    <mkdir dir="${build.dir}/META-INF"/>
-    <copy todir="${build.dir}/META-INF">
-      <fileset dir="${etc.dir}">
-        <include name="**/jboss-service.xml"/>
-      </fileset>
-    </copy>
-    <jar destfile="${target.dir}/${jboss-profiler.sar}"
-         basedir="${build.dir}"
-         includes="org/jboss/profiler/as/**,org/jboss/profiler/connectors/**,**/*.xml"
-         excludes="**/*.java"/>
-  </target>
-  
-  <!-- =================================================================== -->
   <!-- Doc                                                                 -->
   <!-- =================================================================== -->
   <target name="doc">

Modified: branches/JBossProfiler2/client/build.xml
===================================================================
--- branches/JBossProfiler2/client/build.xml	2010-11-27 17:12:23 UTC (rev 593)
+++ branches/JBossProfiler2/client/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -59,6 +59,14 @@
     <jar destfile="${target.dir}/${jboss-profiler-client.jar}"
          basedir="${build.client.dir}/impl"
          manifest="src/main/resources/client-manifest.mf"/>
+
+<!--
+    <jar destfile="${target.dir}/${jboss-profiler-precompiler.jar}"
+         basedir="${build.dir}"
+         manifest="${etc.dir}/precompiler-manifest.mf"
+         includes="org/jboss/profiler/agent/**,org/jboss/profiler/client/precompiler/**,org/jboss/profiler/shared/**,**/*.xml"
+         excludes="**/*.java"/>
+-->
   </target>
 
 </project>

Added: branches/JBossProfiler2/connectors/build.xml
===================================================================
--- branches/JBossProfiler2/connectors/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/connectors/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,57 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-connectors" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.connectors.dir" value="${build.dir}/connectors" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.connectors.dir}" />
+    <mkdir dir="${build.connectors.dir}/impl" />
+
+    <javac srcdir="src/main/java"
+           destdir="${build.connectors.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <jar destfile="${target.dir}/${jboss-profiler-connectors.jar}"
+         basedir="${build.connectors.dir}/impl"
+         manifest="src/main/resources/connectors-manifest.mf"/>
+  </target>
+
+</project>

Copied: branches/JBossProfiler2/connectors/src/main/resources/connectors-manifest.mf (from rev 592, branches/JBossProfiler2/core/src/main/resources/connectors-manifest.mf)
===================================================================
--- branches/JBossProfiler2/connectors/src/main/resources/connectors-manifest.mf	                        (rev 0)
+++ branches/JBossProfiler2/connectors/src/main/resources/connectors-manifest.mf	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1 @@
+Manifest-Version: 1.0

Deleted: branches/JBossProfiler2/core/src/main/resources/connectors-manifest.mf
===================================================================
--- branches/JBossProfiler2/core/src/main/resources/connectors-manifest.mf	2010-11-27 17:12:23 UTC (rev 593)
+++ branches/JBossProfiler2/core/src/main/resources/connectors-manifest.mf	2010-11-28 16:35:11 UTC (rev 594)
@@ -1 +0,0 @@
-Manifest-Version: 1.0

Deleted: branches/JBossProfiler2/core/src/main/resources/embedded-manifest.mf
===================================================================
--- branches/JBossProfiler2/core/src/main/resources/embedded-manifest.mf	2010-11-27 17:12:23 UTC (rev 593)
+++ branches/JBossProfiler2/core/src/main/resources/embedded-manifest.mf	2010-11-28 16:35:11 UTC (rev 594)
@@ -1,7 +0,0 @@
-Manifest-Version: 1.0
-Premain-Class: org.jboss.profiler.agent.Agent
-Agent-Class: org.jboss.profiler.agent.Agent
-Boot-Class-Path: jboss-profiler-embedded.jar jboss-profiler-plugins.jar javassist.jar ../lib/javassist.jar log4j.jar
-Can-Redefine-Classes: true
-Can-Retransform-Classes: false
-Can-Set-Native-Method-Prefix: false

Deleted: branches/JBossProfiler2/core/src/main/resources/jboss-service.xml
===================================================================
--- branches/JBossProfiler2/core/src/main/resources/jboss-service.xml	2010-11-27 17:12:23 UTC (rev 593)
+++ branches/JBossProfiler2/core/src/main/resources/jboss-service.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  JBoss Profiler                                                       -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<server>
-
-  <!-- JBoss Profiler: Profiler -->
-  <mbean code="org.jboss.profiler.as.Profiler"
-         name="org.jboss.profiler:service=Profiler">
-
-  </mbean>
-
-  <!-- JBoss Profiler: Communicator -->
-  <mbean code="org.jboss.profiler.as.Communicator"
-         name="org.jboss.profiler:service=Communicator">
-
-    <!-- Socket -->
-    <attribute name="Socket">true</attribute>
-
-    <!-- The socket port -->
-    <attribute name="SocketPort">5400</attribute>
-
-    <!-- RMI -->
-    <attribute name="Rmi">false</attribute>
-
-    <!-- The RMI port -->
-    <attribute name="RmiPort">5401</attribute>
-
-    <!-- HTTP -->
-    <attribute name="Http">false</attribute>
-
-    <!-- The HTTP port -->
-    <attribute name="HttpPort">5402</attribute>
-
-  </mbean>
-
-</server>
-

Added: branches/JBossProfiler2/embedded/build.xml
===================================================================
--- branches/JBossProfiler2/embedded/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/embedded/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,57 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-embedded" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.embedded.dir" value="${build.dir}/embedded" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.embedded.dir}" />
+    <mkdir dir="${build.embedded.dir}/impl" />
+
+    <javac srcdir="src/main/java"
+           destdir="${build.embedded.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <jar destfile="${target.dir}/${jboss-profiler-embedded.jar}"
+         basedir="${build.embedded.dir}/impl"
+         manifest="src/main/resources/embedded-manifest.mf"/>
+  </target>
+
+</project>

Copied: branches/JBossProfiler2/embedded/src/main/resources/embedded-manifest.mf (from rev 592, branches/JBossProfiler2/core/src/main/resources/embedded-manifest.mf)
===================================================================
--- branches/JBossProfiler2/embedded/src/main/resources/embedded-manifest.mf	                        (rev 0)
+++ branches/JBossProfiler2/embedded/src/main/resources/embedded-manifest.mf	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Premain-Class: org.jboss.profiler.agent.Agent
+Agent-Class: org.jboss.profiler.agent.Agent
+Boot-Class-Path: jboss-profiler-embedded.jar jboss-profiler-plugins.jar javassist.jar ../lib/javassist.jar log4j.jar
+Can-Redefine-Classes: true
+Can-Retransform-Classes: false
+Can-Set-Native-Method-Prefix: false

Added: branches/JBossProfiler2/integration/build.xml
===================================================================
--- branches/JBossProfiler2/integration/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/integration/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,63 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-integration" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.integration.dir" value="${build.dir}/integration" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.integration.dir}" />
+    <mkdir dir="${build.integration.dir}/impl" />
+
+    <javac srcdir="src/main/java"
+           destdir="${build.integration.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <mkdir dir="${build.integration.dir}/impl/META-INF"/>
+    <copy todir="${build.integration.dir}/impl/META-INF">
+      <fileset dir="src/main/resources">
+        <include name="**/jboss-service.xml"/>
+      </fileset>
+    </copy>
+    <jar destfile="${target.dir}/${jboss-profiler.sar}"
+         basedir="${build.integration.dir}/impl"
+         manifest="src/main/resources/integration-manifest.mf"/>
+  </target>
+
+</project>

Added: branches/JBossProfiler2/integration/src/main/resources/integration-manifest.mf
===================================================================
--- branches/JBossProfiler2/integration/src/main/resources/integration-manifest.mf	                        (rev 0)
+++ branches/JBossProfiler2/integration/src/main/resources/integration-manifest.mf	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1 @@
+Manifest-Version: 1.0

Copied: branches/JBossProfiler2/integration/src/main/resources/jboss-service.xml (from rev 592, branches/JBossProfiler2/core/src/main/resources/jboss-service.xml)
===================================================================
--- branches/JBossProfiler2/integration/src/main/resources/jboss-service.xml	                        (rev 0)
+++ branches/JBossProfiler2/integration/src/main/resources/jboss-service.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  JBoss Profiler                                                       -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<server>
+
+  <!-- JBoss Profiler: Profiler -->
+  <mbean code="org.jboss.profiler.as.Profiler"
+         name="org.jboss.profiler:service=Profiler">
+
+  </mbean>
+
+  <!-- JBoss Profiler: Communicator -->
+  <mbean code="org.jboss.profiler.as.Communicator"
+         name="org.jboss.profiler:service=Communicator">
+
+    <!-- Socket -->
+    <attribute name="Socket">true</attribute>
+
+    <!-- The socket port -->
+    <attribute name="SocketPort">5400</attribute>
+
+    <!-- RMI -->
+    <attribute name="Rmi">false</attribute>
+
+    <!-- The RMI port -->
+    <attribute name="RmiPort">5401</attribute>
+
+    <!-- HTTP -->
+    <attribute name="Http">false</attribute>
+
+    <!-- The HTTP port -->
+    <attribute name="HttpPort">5402</attribute>
+
+  </mbean>
+
+</server>
+

Added: branches/JBossProfiler2/native/build.xml
===================================================================
--- branches/JBossProfiler2/native/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/native/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,62 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-native" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.native.dir" value="${build.dir}/native" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.native.dir}" />
+    <mkdir dir="${build.native.dir}/impl" />
+<!--
+    <javac srcdir="src/main/java"
+           destdir="${build.native.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+
+    <javah class="org.jboss.profiler.jvmti.JVMTIInterface"  destdir="${native-src-dir}" classpathref="test.class.path"/>
+-->
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+<!--
+    <jar destfile="${target.dir}/${jboss-profiler-native.jar}"
+         basedir="${build.native.dir}/impl"
+         manifest="src/main/resources/native-manifest.mf"/>
+-->
+  </target>
+
+</project>

Added: branches/JBossProfiler2/plugins/build.xml
===================================================================
--- branches/JBossProfiler2/plugins/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/plugins/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,57 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-plugins" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.plugins.dir" value="${build.dir}/plugins" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.plugins.dir}" />
+    <mkdir dir="${build.plugins.dir}/impl" />
+
+    <javac srcdir="src/main/java"
+           destdir="${build.plugins.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <jar destfile="${target.dir}/${jboss-profiler-plugins.jar}"
+         basedir="${build.plugins.dir}/impl"
+         manifest="src/main/resources/plugins-manifest.mf"/>
+  </target>
+
+</project>

Added: branches/JBossProfiler2/plugins/src/main/resources/plugins-manifest.mf
===================================================================
--- branches/JBossProfiler2/plugins/src/main/resources/plugins-manifest.mf	                        (rev 0)
+++ branches/JBossProfiler2/plugins/src/main/resources/plugins-manifest.mf	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1 @@
+Manifest-Version: 1.0

Added: branches/JBossProfiler2/web/build.xml
===================================================================
--- branches/JBossProfiler2/web/build.xml	                        (rev 0)
+++ branches/JBossProfiler2/web/build.xml	2010-11-28 16:35:11 UTC (rev 594)
@@ -0,0 +1,94 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="profiler-web" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.web.dir" value="${build.dir}/web" />
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile">
+    <mkdir dir="${build.web.dir}" />
+    <mkdir dir="${build.web.dir}/impl" />
+<!--
+    <javac srcdir="src/main/java"
+           destdir="${build.web.dir}/impl"
+           classpathref="class.path"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+-->
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+<!--
+    <war destfile="${target.dir}/${jboss-profiler.war}" webxml="${etc.dir}/web.xml">
+      <fileset dir="${src.main.dir}/www"/>
+      <lib dir="${lib.dir}">
+        <exclude name="asm.jar"/>
+        <exclude name="javassist.jar"/>
+        <exclude name="concurrent.jar"/>
+        <exclude name="ejb3-persistence.jar"/>
+        <exclude name="jboss-common.jar"/>
+        <exclude name="jboss-ejb3x.jar"/>
+        <exclude name="jboss-remoting.jar"/>
+        <exclude name="jbossall-client.jar"/>
+        <exclude name="jsf-api.jar"/>
+        <exclude name="jsf-impl.jar"/>
+        <exclude name="log4j.jar"/>
+        <exclude name="servlet.jar"/>
+      </lib>
+      <classes dir="${build.dir}">
+        <include name="org/jboss/profiler/client/*"/>
+        <include name="org/jboss/profiler/client/web/**"/>
+        <include name="org/jboss/profiler/shared/**"/>
+        <exclude name="**/*.java"/>
+      </classes>
+      <zipfileset dir="${etc.dir}/"
+                  prefix="WEB-INF">
+        <include name="faces-config.xml"/>
+        <include name="jboss-web.xml"/>
+        <include name="*.tld"/>
+      </zipfileset>
+      <zipfileset dir="${etc.dir}/"
+                  prefix="WEB-INF/classes">
+        <include name="*skin.properties"/>
+      </zipfileset>
+      <zipfileset dir="${src.main.dir}/resources"
+                  prefix="WEB-INF/classes/resources">
+        <include name="*.properties"/>
+      </zipfileset>
+    </war>
+-->
+  </target>
+
+</project>



More information about the jboss-cvs-commits mailing list