Yes, that worked.
Attached are the patches for the sources including the needed fortress meta tags, 
perhaps you want to apply them to the cvs?

Unfortunately i'm not used to maven, so i hand-edited for building the maven-generated 
build.xml; see attached as a example (i've added a target 'collect-meta'; forrest 
tools jars still need to be included in get-deps).

Stefan

> >Is it possible to user avalon-components/cornerstone esp. 
> services like TimeScheduler and ThreadManager in the Fortress 
> Container? The avalon-components jar does not include the 
> needed meta-information.
> >
> >It tried to generate it myself with the forrest meta-collect 
> ant task, but the sources does not contain the needed meta 
> tags  like @avalon.component, @x-avalon.lifestyle etc.
> >
> >I could add them myself, but what are the correct livestyle 
> types for each component?
> >
> 
> All of the components in the cornerstone suite have a 
> "singleton" lifestyle.
> 
> Stephen.

Attachment: avalon-components_fortress-tags.zip
Description: avalon-components_fortress-tags.zip

<?xml version="1.0" encoding="UTF-8"?>

<!--
  build.xml generated by maven from project.xml version 1.0
  on date June 20 2003, time 0219
-->

<project default="jar" name="cornerstone" basedir=".">

  <property name="version" value="1.0"/>
  <property name="build.dir" value="build"/>
  <property name="lib.dir" value="${build.dir}/lib"/>
  <property name="classes.dir" value="${build.dir}/classes"/>
  <property name="test-classes.dir" value="${build.dir}/test-classes"/>
  <property name="test-report.dir" value="${build.dir}/test-reports"/>
  <property name="dist.dir" value="${build.dir}/dist"/>
  <property name="javadoc.dir" value="${dist.dir}/docs/api"/>
  <property name="final.name" value="cornerstone-${version}"/>

  <path id="src.path">
    <pathelement location="${basedir}/connection-api/src/java"/>
    <pathelement location="${basedir}/datasources-api/src/java"/>
    <pathelement location="${basedir}/scheduler-api/src/java"/>
    <pathelement location="${basedir}/sockets-api/src/java"/>
    <pathelement location="${basedir}/store-api/src/java"/>
    <pathelement location="${basedir}/threads-api/src/java"/>
    <pathelement location="${basedir}/connection-impl/src/java"/>
    <pathelement location="${basedir}/datasources-impl/src/java"/>
    <pathelement location="${basedir}/scheduler-impl/src/java"/>
    <pathelement location="${basedir}/sockets-impl/src/java"/>
    <pathelement location="${basedir}/store-impl/src/java"/>
    <pathelement location="${basedir}/threads-impl/src/java"/>
  </path>

  <patternset id="src.java.includes">
    <include name="**/*.dtd"/>
    <include name="**/*.properties"/>
    <include name="**/*.xinfo"/>
    <include name="**/*.xtype"/>
    <include name="**/*.xprofile"/>
    <include name="**/*.xconfig"/>
    <include name="**/*.xml"/>
    <include name="**/*.xservice"/>
  </patternset>

  <target name="init" description="o Initializes some properties">
    <mkdir dir="${lib.dir}"/>
    <condition property="noget">
      <equals arg2="only" arg1="${build.sysclasspath}">
      </equals>
    </condition>
  </target>

  <target name="compile" description="o Compile the code" depends="get-deps">
    <mkdir dir="${classes.dir}">
    </mkdir>
    <javac destdir="${classes.dir}" 
        deprecation="false" debug="true" optimize="false" excludes="**/package.html">
      <src>
        <path refid="src.path"/>
      </src>
      <classpath>
        <fileset dir="${lib.dir}">
          <include name="*.jar">
          </include>
        </fileset>
      </classpath>
    </javac>

    <copy todir="${classes.dir}">
      <fileset dir="${basedir}/connection-api/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/connection-impl/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/datasources-api/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/datasources-impl/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/scheduler-api/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/scheduler-impl/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/sockets-api/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/sockets-impl/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/store-api/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/store-impl/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/threads-api/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/threads-impl/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
      <fileset dir="${basedir}/threads-tutorial/src/java">
        <patternset refid="src.java.includes"/>
      </fileset>
    </copy>
    <copy todir="${classes.dir}">
      <fileset dir="${basedir}/site/etc">
        <include name="LICENSE.txt"/>
      </fileset>
    </copy>
  </target>

  <target name="jar" description="o Create the jar" depends="compile, collect-meta">
    <jar jarfile="${build.dir}/${final.name}.jar" excludes="**/package.html" 
      basedir="${classes.dir}">
    </jar>
  </target>

  <target name="clean" description="o Clean up the generated directories">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
  </target>

  <target name="dist" description="o Create a distribution" depends="jar, javadoc">
    <mkdir dir="${dist.dir}"/>
    <copy todir="${dist.dir}">
      <fileset dir="${build.dir}" includes="*.jar"/>
      <fileset dir="${basedir}" includes="LICENSE*, README*"/>
    </copy>
  </target>

  <target name="javadoc" description="o Generate javadoc" depends="jar">
    <mkdir dir="${javadoc.dir}"/>
    <tstamp>
      <format pattern="2001-yyyy" property="year">
      </format>
    </tstamp>
    <property name="copyright" 
      value="Copyright &amp;copy;  Apache Software Foundation. All Rights Reserved."/>
    <property name="title" value="Cornerstone 1.0"/>
    <javadoc use="true" private="true" destdir="${javadoc.dir}" 
       author="true" version="true" 
       packagenames="org.apache.avalon.cornerstone.services.threads.*" 
       sourcepathref="src.path">
      <classpath>
        <fileset dir="${lib.dir}">
          <include name="*.jar">
          </include>
        </fileset>
        <pathelement location="${build.dir}/${final.name}.jar">
        </pathelement>
      </classpath>
    </javadoc>
  </target>

  <target name="get-deps" unless="noget" depends="init">
    <get dest="${lib.dir}/avalon-framework-api-SNAPSHOT.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/avalon-framework/jars/avalon-framework-api-SNAPSHOT.jar"/>
    <get dest="${lib.dir}/avalon-framework-impl-SNAPSHOT.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/avalon-framework/jars/avalon-framework-impl-SNAPSHOT.jar"/>
    <get dest="${lib.dir}/excalibur-datasource-1.1.1.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/excalibur-datasource/jars/excalibur-datasource-1.1.1.jar"/>
    <get dest="${lib.dir}/excalibur-thread-1.1.1.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/excalibur-thread/jars/excalibur-thread-1.1.1.jar"/>
    <get dest="${lib.dir}/excalibur-event-1.0.3.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/excalibur-event/jars/excalibur-event-1.0.3.jar"/>
    <get dest="${lib.dir}/junit-3.8.1.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"/>
    <get dest="${lib.dir}/ant-1.5.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar"/>
    <get dest="${lib.dir}/ant-optional-1.5.jar" 
       usetimestamp="true" ignoreerrors="true" 
       src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar"/>

  </target>



	<target name="collect-meta">
	
	    <taskdef name="collect-meta"
	        classname="org.apache.avalon.fortress.tools.ComponentMetaInfoCollector">
	        <classpath>
	            <fileset dir="C:\Daten_Lokal\apache\avalon-fortress-container-1.1-dev\lib-tools">
	                <include name="*.jar"/>
	            </fileset>
	            <fileset dir="C:\Daten_Lokal\apache\avalon-fortress-container-1.1-dev\lib">
	                <include name="*.jar"/>
	            </fileset>
	        </classpath>
	    </taskdef>
	
	    <collect-meta destdir="${classes.dir}">
          <fileset dir="${basedir}/connection-api/src/java"/>
          <fileset dir="${basedir}/datasources-api/src/java"/>
          <fileset dir="${basedir}/scheduler-api/src/java"/>
          <fileset dir="${basedir}/sockets-api/src/java"/>
          <fileset dir="${basedir}/store-api/src/java"/>
          <fileset dir="${basedir}/threads-api/src/java"/>
          <fileset dir="${basedir}/connection-impl/src/java"/>
          <fileset dir="${basedir}/datasources-impl/src/java"/>
          <fileset dir="${basedir}/scheduler-impl/src/java"/>
          <fileset dir="${basedir}/sockets-impl/src/java"/>
          <fileset dir="${basedir}/store-impl/src/java"/>
          <fileset dir="${basedir}/threads-impl/src/java"/>
	    </collect-meta>
	
	</target>

</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to