[Jpackage-commits] rpms/free/asn1 asn1-0.3.3-ber-new-project_xml.patch, NONE, 1.1.4.2 asn1-0.3.3-ber-project_xml.patch, NONE, 1.1.4.2 asn1-0.3.3-codec-project_xml.patch, NONE, 1.1.4.2 asn1-0.3.3-jpp-depmap.xml, NONE, 1.1.4.2 asn1-0.3.3-maven_xml.patch, NONE, 1.1.4.2 asn1-0.3.3-project_xml.patch, NONE, 1.1.4.2 asn1-0.3.3.pom, NONE, 1.1.2.1 asn1-ber-0.3.3.pom, NONE, 1.1.2.1 asn1-codec-0.3.3.pom, NONE, 1.1.2.1 asn1-der-0.3.3.pom, NONE, 1.1.2.1 asn1-new-ber-0.3.3.pom, NONE, 1.1.2.1 asn1.spec, NONE, 1.1.4.2 pom-maven2jpp-depcat.xsl, NONE, 1.1.4.2 pom-maven2jpp-mapdeps.xsl, NONE, 1.1.4.2 pom-maven2jpp-newdepmap.xsl, NONE, 1.1.4.2

jpackage jpackage at ryu.zarb.org
Sat Feb 7 15:52:01 CET 2009


Update of /home/projects/jpackage/cvs/rpms/free/asn1
In directory ryu.zarb.org:/tmp/MyBmGM69Wb/rpms/free/asn1

Added Files:
      Tag: JPACKAGE-5_0
	asn1-0.3.3-ber-new-project_xml.patch 
	asn1-0.3.3-ber-project_xml.patch 
	asn1-0.3.3-codec-project_xml.patch asn1-0.3.3-jpp-depmap.xml 
	asn1-0.3.3-maven_xml.patch asn1-0.3.3-project_xml.patch 
	asn1-0.3.3.pom asn1-ber-0.3.3.pom asn1-codec-0.3.3.pom 
	asn1-der-0.3.3.pom asn1-new-ber-0.3.3.pom asn1.spec 
	pom-maven2jpp-depcat.xsl pom-maven2jpp-mapdeps.xsl 
	pom-maven2jpp-newdepmap.xsl 
Log Message:
0.3.3-2.jpp5

--- NEW FILE: asn1-new-ber-0.3.3.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>directory-asn1</groupId>
  <artifactId>asn1-new-ber</artifactId>
  <name>ASN.1 new BER Runtime</name>
  <version>0.3.3</version>
  <description>A new BER implementation</description>
  <inceptionYear>2005</inceptionYear>
  <developers>
    <developer>
      <id>elecharny</id>
      <name>Emmanuel Lécharny</name>
      <email>elecharny at apache.org</email>
    </developer>
  </developers>
  <build>
    <sourceDirectory>${basedir}/src/java/main</sourceDirectory>
  </build>
  <dependencies>
    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>asn1-codec</artifactId>
      <version>${pom.currentVersion}</version>
    </dependency>
  </dependencies>
</project>
--- NEW FILE: asn1-0.3.3-project_xml.patch ---
--- project.xml.sav0	2005-10-28 02:53:08.000000000 +0200
+++ project.xml	2009-01-26 16:50:11.000000000 +0100
@@ -34,9 +34,6 @@
         http://svn.apache.org/viewcvs.cgi/directory/asn1/trunk/${module.path}/?root=Apache-SVN
       </url>
       
-      <developerConnection>
-        https://svn.apache.org/repos/asf/directory/asn1/trunk/${module.path}
-      </developerConnection>
     </repository>
   
     <shortDescription>Apache ASN.1 Tools</shortDescription>
@@ -85,6 +82,12 @@
       <version>1.2.17</version>
       <url>http://slf4j.org/nlog4j</url>
     </dependency>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>3.8.1</version>
+        <url>http://junit.org</url>
+      </dependency>
   </dependencies>
     
     <developers>
@@ -135,15 +138,6 @@
       </license>
     </licenses>
 
-    <dependencies>
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <version>3.8.1</version>
-        <url>http://junit.org</url>
-      </dependency>
-    </dependencies>        
-  
     <build>
       <nagEmailAddress>dev at directory.apache.org</nagEmailAddress>
       <sourceDirectory>${basedir}/src/java</sourceDirectory>
@@ -210,7 +204,6 @@
         </resource>
 
       </resources>
-      <jars></jars>
     </build>
     
     <reports>
@@ -219,7 +212,7 @@
         <!-- report>maven-changelog-plugin</report -->
         <report>maven-javadoc-plugin</report>
         <!-- report>maven-clover-plugin</report -->
-    	<report>maven-tasklist-plugin</report>
+    	<!-- report>maven-tasklist-plugin</report -->
     </reports>
 </project>
 

--- NEW FILE: asn1-0.3.3-ber-new-project_xml.patch ---
--- ber-new/project.xml.sav	2005-09-12 23:26:11.000000000 +0200
+++ ber-new/project.xml	2006-01-26 13:56:22.000000000 +0100
@@ -26,6 +26,18 @@
             <version>${pom.currentVersion}</version>
             <type>jar</type>
         </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>nlog4j</artifactId>
+            <version>1.2.17</version>
+            <url>http://slf4j.org/nlog4j</url>
+        </dependency>
+        <dependency>
+            <groupId>commons-primitives</groupId>
+            <artifactId>commons-primitives</artifactId>
+            <version>20041207.202534</version>
+            <url>http://jakarta.apache.org/commons/primitives</url>
+        </dependency>
     </dependencies>
 </project>
 

--- NEW FILE: pom-maven2jpp-depcat.xsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> 
 <xsl:strip-space elements="*"/> 
 <xsl:template match="*[name() != 'dependencies']|*/text()">
     <xsl:apply-templates/>
 </xsl:template>
 <xsl:template match="//dependencies">
  <xsl:for-each select="./dependency">
   <xsl:element name="dependency">
    <xsl:element name="maven">
     <xsl:choose>
      <xsl:when test="./groupId">
       <xsl:copy-of select="./groupId"/>
       <xsl:copy-of select="./artifactId"/>
      </xsl:when>
      <xsl:when test="./id">
       <xsl:choose>
        <xsl:when test="substring-before(./id/text(),':') != ''">
         <xsl:element name="groupId">
          <xsl:value-of select="substring-before(./id/text(),':')"/>
         </xsl:element>
         <xsl:element name="artifactId">
          <xsl:value-of select="substring-after(./id/text(),':')"/>
         </xsl:element>
        </xsl:when>
        <xsl:otherwise>
         <xsl:element name="groupId">
          <xsl:value-of select="./id/text()"/>
         </xsl:element>
         <xsl:element name="artifactId">
          <xsl:value-of select="./id/text()"/>
         </xsl:element>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
ERROR
      </xsl:otherwise>
     </xsl:choose>
     <xsl:for-each select="./*">
      <xsl:if test="(name() != 'groupId') and (name() != 'artifactId') and (name() != 'id')">
       <xsl:copy-of select="."/>
      </xsl:if>
     </xsl:for-each>
    </xsl:element>
    <xsl:element name="jpp">
     <xsl:element name="groupId">JPP</xsl:element>
     <xsl:choose>
      <xsl:when test="./artifactId">
       <xsl:copy-of select="./artifactId"/>
      </xsl:when>
      <xsl:when test="./id">
       <xsl:choose>
        <xsl:when test="substring-after(./id/text(),':') != ''">
         <xsl:element name="artifactId">
          <xsl:value-of select="substring-after(./id/text(),':')"/>
         </xsl:element>
        </xsl:when>
        <xsl:otherwise>
         <xsl:element name="artifactId">
          <xsl:value-of select="./id/text()"/>
         </xsl:element>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
ERROR
      </xsl:otherwise>
     </xsl:choose>
     <xsl:element name="jar">
      <xsl:choose>
       <xsl:when test="./artifactId">
        <xsl:value-of select="./artifactId/text()"/>
       </xsl:when>
       <xsl:when test="./id">
        <xsl:choose>
         <xsl:when test="substring-after(./id/text(),':') != ''">
          <xsl:value-of select="substring-after(./id/text(),':')"/>
         </xsl:when>
         <xsl:otherwise>
          <xsl:value-of select="./id/text()"/>
         </xsl:otherwise>
        </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
ERROR
       </xsl:otherwise>
      </xsl:choose>
      <xsl:choose>
       <xsl:when test="./type">
        <xsl:choose>
         <xsl:when test="./type/text() = 'plugin'">.jar</xsl:when>
         <xsl:otherwise>.<xsl:value-of select="./type/text()"/></xsl:otherwise>
        </xsl:choose>
       </xsl:when>
       <xsl:otherwise>.jar</xsl:otherwise>
      </xsl:choose>
     </xsl:element>
     <xsl:for-each select="./*">
      <xsl:if test="(name() != 'groupId') and (name() != 'artifactId') and (name() != 'id')">
       <xsl:copy-of select="."/>
      </xsl:if>
     </xsl:for-each>
    </xsl:element>
   </xsl:element>
  </xsl:for-each>
 </xsl:template>
</xsl:stylesheet>

--- NEW FILE: asn1-0.3.3-maven_xml.patch ---
--- maven.xml.sav	2006-01-27 17:24:02.000000000 +0100
+++ maven.xml	2006-01-27 17:25:11.000000000 +0100
@@ -35,7 +35,7 @@
       <packageset dir="ber/src/java"/>
       <packageset dir="codec/src/java"/>
       <packageset dir="der/src/java"/>
-      <packageset dir="stub-compiler/src/java"/>
+      <packageset dir="ber-new/src/java"/>
       <classpath>
         <fileset dir="${basedir}">
           <include name="**/*.jar"/>

--- NEW FILE: pom-maven2jpp-newdepmap.xsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:saxon="http://icl.com/saxon"
	extension-element-prefixes="saxon">
 <xsl:output method="xml" indent="yes" omit-xml-declaration="no"/> 
 <xsl:strip-space elements="*"/> 
 <xsl:template match="/" >
  <xsl:element name="depset">
   <saxon:group select="//dependency" group-by="./maven/artifactId">
    <xsl:sort select="./maven/artifactId"/>
    <xsl:element name="dependency">
     <xsl:element name="maven">
      <xsl:copy-of select="./maven/*[name() != 'properties']"/>
     </xsl:element>
     <xsl:element name="jpp">
      <xsl:copy-of select="./jpp/*[name() != 'properties']"/>
     </xsl:element>
    </xsl:element>
    <saxon:item/>
   </saxon:group>
  </xsl:element>
 </xsl:template>
</xsl:stylesheet>

--- NEW FILE: asn1-der-0.3.3.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>directory-asn1</groupId>
  <artifactId>asn1-der</artifactId>
  <name>ASN.1 DER Runtime</name>
  <version>0.3.3</version>
  <description>API containing functionality used for encoding and decoding DER 
    streams in blocking mode.  This is stepping-stone code meant to
    facilitate the migration of Kerberos, which was developed outside of
    the ASF, to the Apache Directory project's ASN.1 Runtime.</description>
  <inceptionYear>2005</inceptionYear>
</project>
--- NEW FILE: asn1.spec ---
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define section         free

Summary:        Apache ASN.1 Tools
Name:           asn1
Version:        0.3.3
Release:        2%{dist}
Epoch:          0
Group:          Security/Cryptography
License:        Apache 2.0 License
URL:            http://directory.apache.org/subprojects/asn1/
BuildArch:      noarch
Source0:        %{name}-%{version}-src.tar.gz
# svn export https://svn.apache.org/repos/asf/directory/releases/asn1-0.3.3/

Source1:        pom-maven2jpp-depcat.xsl
Source2:        pom-maven2jpp-newdepmap.xsl
Source3:        pom-maven2jpp-mapdeps.xsl
Source4:        asn1-0.3.3-jpp-depmap.xml
Source5:        http://repo1.maven.org/maven2/directory-asn1/asn1/0.3.3/asn1-0.3.3.pom
Source6:        http://repo1.maven.org/maven2/directory-asn1/asn1-ber/0.3.3/asn1-ber-0.3.3.pom
Source7:        http://repo1.maven.org/maven2/directory-asn1/asn1-codec/0.3.3/asn1-codec-0.3.3.pom
Source8:        http://repo1.maven.org/maven2/directory-asn1/asn1-der/0.3.3/asn1-der-0.3.3.pom
Source9:        http://repo1.maven.org/maven2/directory-asn1/asn1-new-ber/0.3.3/asn1-new-ber-0.3.3.pom
Patch0:         asn1-0.3.3-project_xml.patch
Patch1:         asn1-0.3.3-ber-new-project_xml.patch
Patch2:         asn1-0.3.3-ber-project_xml.patch
Patch3:         asn1-0.3.3-maven_xml.patch
Patch4:         asn1-0.3.3-codec-project_xml.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  junit
BuildRequires:  maven => 0:1.1
BuildRequires:  maven-plugins-base
BuildRequires:  maven-plugin-jxr
BuildRequires:  maven-plugin-license
BuildRequires:  maven-plugin-multiproject
BuildRequires:  maven-plugin-site
BuildRequires:  maven-plugin-test
BuildRequires:  maven-plugin-xdoc
BuildRequires:  saxon
BuildRequires:  saxon-scripts
BuildRequires:  jakarta-commons-test
BuildRequires:  jakarta-commons-collections
BuildRequires:  jakarta-commons-lang
BuildRequires:  jakarta-commons-primitives11 >= 0:1.1
BuildRequires:  mina0
BuildRequires:  nlog4j
BuildRequires:  regexp
Requires:       jakarta-commons-collections
Requires:       jakarta-commons-lang
Requires:       jakarta-commons-primitives11 >= 0:1.1
Requires:       mina0
Requires:       nlog4j
Requires:       regexp

Requires(post):   jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5

%description
The ASN.1 subproject attempts to isolate the ASN.1 libraries and tools
for encoding ASN.1 in BER/DER/CER/PER encodings. The LDAP and X.500 
aspects of the directory project impose the need for ASN.1 and BER 
codecs.  Kerberos requires DER.  Rather than implement highly
specific and britle code for these needs we decided to separate out
the APIs and implementations used for dealing with ASN.1 codecs for any
ASN.1 defined protocol.

%package javadoc
Group:          Development/Documentation
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package manual
Group:          Development/Documentation
Summary:        Documents for %{name}

%description manual
Documents for %{name}.

%prep
%setup -q -n %{name}-%{version}

%patch0 -b .sav0
%patch1 -b .sav1
%patch2 -b .sav2
%patch3 -b .sav3
%patch4 -b .sav4


%build
export DEPCAT=$(pwd)/asn1-0.3.3-depcat.new.xml
echo '<?xml version="1.0" standalone="yes"?>' > $DEPCAT
echo '<depset>' >> $DEPCAT
for p in $(find . -name project.xml); do
    pushd $(dirname $p)
    /usr/bin/saxon project.xml %{SOURCE1} >> $DEPCAT
    popd
done
echo >> $DEPCAT
echo '</depset>' >> $DEPCAT
/usr/bin/saxon $DEPCAT %{SOURCE2} > asn1-0.3.3-depmap.new.xml
for p in $(find . -name project.xml); do
    pushd $(dirname $p)
    cp project.xml project.xml.orig
    /usr/bin/saxon -o project.xml project.xml.orig %{SOURCE3} map=%{SOURCE4}
    popd
done

[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
mkdir .maven
maven -e \
       -Dmaven.repo.remote=file:/usr/share/maven/repository \
       -Dmaven.home.local=$(pwd)/.maven \
       multiproject:install multiproject:site

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}

mv ber-new/target/%{name}-new-ber-%{version}.jar ber-new/target/%{name}-ber-new-%{version}.jar
for j in der ber codec ber-new; do
uvjar=$(echo %{name}-${j}-%{version}.jar | sed s+-%{version}++g)
install -m 644 ${j}/target/%{name}-${j}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}
pushd $RPM_BUILD_ROOT%{_javadir}/%{name}
   ln -fs %{name}-${j}-%{version}.jar ${uvjar}
popd
done

install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap directory-asn1 %{name} %{version} JPP %{name}
install -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-ber.pom
%add_to_maven_depmap %{name}-ber %{name}-ber %{version} JPP/%{name} %{name}-ber
%add_to_maven_depmap directory-asn1 %{name}-ber %{version} JPP/%{name} %{name}-ber
install -m 0644 %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-codec.pom
%add_to_maven_depmap directory-asn1 %{name}-codec %{version} JPP/%{name} %{name}-codec
install -m 0644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-der.pom
%add_to_maven_depmap directory-asn1 %{name}-der %{version} JPP/%{name} %{name}-der
install -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-new-ber.pom
%add_to_maven_depmap directory-asn1 %{name}-new-ber %{version} JPP/%{name} %{name}-new-ber

# javadoc and manual
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
install -d -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
for j in der ber codec ber-new; do
    install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/${j}
    cp -pr ${j}/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/${j}
    rm -rf ${j}/target/docs/apidocs
    install -d -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/${j}
    cp -pr ${j}/target/docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/${j}
done
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
cp -p LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%files manual
%defattr(0644,root,root,0755)
%{_docdir}/%{name}-%{version}

%changelog
* Fri Feb 06 2009 Ralph Apel <r.apel at r-apel.de> 0:0.3.3-2.jpp5
- Rebuild to current best practices

* Sun Feb 12 2006 Ralph Apel <r.apel at r-apel.de> 0:0.3.3-1jpp
- First JPackage release.


--- NEW FILE: asn1-0.3.3.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>directory-asn1</groupId>
  <artifactId>asn1</artifactId>
  <name>Apache ASN.1</name>
  <version>0.3.3</version>
  <description>The ASN.1 subproject attempts to isolate the ASN.1 libraries and tools
      for encoding ASN.1 in BER/DER/CER/PER encodings. The LDAP and X.500 
      aspects of the directory project impose the need for ASN.1 and BER 
      codecs.  Kerberos requires DER.  Rather than implement highly
      specific and britle code for these needs we decided to separate out
      the APIs and implementations used for dealing with ASN.1 codecs for any
      ASN.1 defined protocol.</description>
  <url>http://directory.apache.org/subprojects/asn1</url>
  <issueManagement>
    <url>http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10517</url>
  </issueManagement>
  <ciManagement>
    <notifiers>
      <notifier>
        <configuration>
          <address>dev at directory.apache.org</address>
        </configuration>
      </notifier>
    </notifiers>
  </ciManagement>
  <inceptionYear>2003</inceptionYear>
  <mailingLists>
    <mailingList>
      <name>Apache Directory Developement - use [asn1] prefix</name>
      <subscribe>dev-subscribe at directory.apache.org</subscribe>
      <unsubscribe>dev-unsubscribe at directory.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/eyebrowse/ViewLists</archive>
    </mailingList>
  </mailingLists>
  <developers>
    <developer>
      <id>adc</id>
      <name>Alan Cabrera</name>
      <email>adc at apache.org</email>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>
    <developer>
      <id>akarasulu</id>
      <name>Alex Karasulu</name>
      <email>akarasulu at apache.org</email>
      <roles>
        <role>Founder</role>
        <role>Developer</role>
        <role>Architect</role>
        <role>Lead Developer</role>
      </roles>
    </developer>
    <developer>
      <id>wesmckean</id>
      <name>Wes McKean</name>
      <email>wesmckean at apache.org</email>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>
    <developer>
      <id>erodriguez</id>
      <name>Enrique Rodriguez</name>
      <email>erodriguez at apache.org</email>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache 2.0 License</name>
      <url>http://cvs.apache.org/viewcvs.cgi/directory/LICENSE.txt?rev=1369&root=Apache-SVN&view=markup</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/directory:asn1/trunk/</connection>
    <developerConnection>https://svn.apache.org/repos/asf/directory/asn1/trunk/</developerConnection>
    <url>http://svn.apache.org/viewcvs.cgi/directory/asn1/trunk//?root=Apache-SVN</url>
  </scm>
  <build>
    <sourceDirectory>C:\dev\directory\asn1/src/java</sourceDirectory>
    <testSourceDirectory>C:\dev\directory\asn1/src/test</testSourceDirectory>
    <resources>
      <resource>
        <directory>C:\dev\directory\asn1/src/java</directory>
        <includes>
          <include>**/*.dtd</include>
          <include>**/*.properties</include>
          <include>**/*.x*</include>
        </includes>
      </resource>
      <resource>
        <targetPath>META-INF</targetPath>
        <directory>C:\dev\directory\asn1/../</directory>
        <includes>
          <include>LICENSE.txt</include>
          <include>NOTICE.txt</include>
        </includes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>C:\dev\directory\asn1/src/test</directory>
        <includes>
          <include>**/*.dtd</include>
          <include>**/*.ldif</include>
          <include>**/*.properties</include>
          <include>**/*.x*</include>
          <include>**/*.mf</include>
          <include>**/*.jar</include>
        </includes>
      </testResource>
      <testResource>
        <directory>C:\dev\directory\asn1/src/test</directory>
        <includes>
          <include>**/*.dtd</include>
          <include>**/*.ldif</include>
          <include>**/*.properties</include>
          <include>**/*.x*</include>
          <include>**/*.mf</include>
          <include>**/*.jar</include>
        </includes>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <includes>
            <include>**/*Test*</include>
            <include>**/*TestCase*</include>
          </includes>
          <excludes>
            <exclude>**/testutils/*</exclude>
            <exclude>**/Abstract*</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>default</id>
      <name>Default Repository</name>
      <url>file:///www/cvs.apache.org/dist/directory</url>
    </repository>
    <site>
      <id>default</id>
      <name>Default Site</name>
      <url>scp://minotaur.apache.org//www/directory.apache.org/subprojects/asn1</url>
    </site>
    <status>converted</status>
  </distributionManagement>
</project>
--- NEW FILE: asn1-0.3.3-ber-project_xml.patch ---
--- ber/project.xml.orig	2006-01-27 16:43:10.000000000 +0100
+++ ber/project.xml	2006-01-27 16:47:47.000000000 +0100
@@ -53,6 +53,13 @@
       </properties>
     </dependency>
 
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>nlog4j</artifactId>
+      <version>1.2.17</version>
+      <url>http://slf4j.org/nlog4j</url>
+    </dependency>
+
     <!-- deps in group -->
 
     <dependency>

--- NEW FILE: asn1-ber-0.3.3.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>asn1-ber</groupId>
  <artifactId>asn1-ber</artifactId>
  <name>ASN.1 BER Runtime</name>
  <version>0.3.3</version>
  <description>API containing functionality used for encoding and decoding BER 
    streams both in blocking and non-blocking modes.</description>
  <inceptionYear>2004</inceptionYear>
  <dependencies>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>commons-test</groupId>
      <artifactId>commons-test</artifactId>
      <version>0.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.0</version>
    </dependency>
    <dependency>
      <groupId>commons-primitives</groupId>
      <artifactId>commons-primitives</artifactId>
      <version>20041207.202534</version>
    </dependency>
    <dependency>
      <groupId>regexp</groupId>
      <artifactId>regexp</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>asn1-codec</artifactId>
      <version>${pom.currentVersion}</version>
    </dependency>
  </dependencies>
</project>
--- NEW FILE: asn1-0.3.3-codec-project_xml.patch ---
--- codec/project.xml.orig	2006-01-27 17:45:26.000000000 +0100
+++ codec/project.xml	2006-01-27 17:53:46.000000000 +0100
@@ -5,7 +5,7 @@
     <artifactId>asn1-codec</artifactId>
     <id>asn1-codec</id>
     <name>Stateful chunking codec API for ASN.1 runtime</name>
-    <package>org.apache.asn1.codecs</package>
+    <package>org.apache.asn1.codec</package>
     <inceptionYear>2004</inceptionYear>
     <shortDescription>API for stateful chunking encoder/decoder pairs</shortDescription>
     <description>API for stackable stateful encoders and decoders.  Such codec interfaces

--- NEW FILE: asn1-codec-0.3.3.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>directory-asn1</groupId>
  <artifactId>asn1-codec</artifactId>
  <name>Stateful chunking codec API for ASN.1 runtime</name>
  <version>0.3.3</version>
  <description>API for stackable stateful encoders and decoders.  Such codec interfaces
    allow for the efficient processing of data as it is made available while
    maintaining small actively processing footprints.  Of course these aspects
    depend on the implementation as well however this API standardizes the
    minimum set of interfaces associated with codec's that are stateful.
    Until this API is added to the commons-codec project several interfaces
    and classes here are duplicated to minimize the number of dependencies:
    namely a dependency on commons-codec will be avoided.</description>
  <inceptionYear>2004</inceptionYear>
  <dependencies>
    <dependency>
      <groupId>directory-network</groupId>
      <artifactId>mina</artifactId>
      <version>0.8.0</version>
    </dependency>
  </dependencies>
</project>
--- NEW FILE: asn1-0.3.3-jpp-depmap.xml ---
<?xml version="1.0" encoding="utf-8"?>
<depset>
<!--
-->
   <dependency>
      <maven>
         <groupId>commons-collections</groupId>
         <artifactId>commons-collections</artifactId>
         <version>3.0</version>
         <url>http://jakarta.apache.org/commons/collections</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-collections</artifactId>
         <jar>commons-collections.jar</jar>
         <version>3.0</version>
         <url>http://jakarta.apache.org/commons/collections</url>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>commons-lang</groupId>
         <artifactId>commons-lang</artifactId>
         <version>2.0</version>
         <url>http://jakarta.apache.org/commons/lang/api</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-lang</artifactId>
         <jar>commons-lang.jar</jar>
         <version>2.0</version>
         <url>http://jakarta.apache.org/commons/lang/api</url>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>commons-primitives</groupId>
         <artifactId>commons-primitives</artifactId>
         <version>20041207.202534</version>
         <url>http://jakarta.apache.org/commons/primitives</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-primitives</artifactId>
         <jar>commons-primitives11.jar</jar>
         <version>1.1-SNAPSHOT</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>commons-test</groupId>
         <artifactId>commons-test</artifactId>
         <version>0.1</version>
         <url>http://jakarta.apache.org/commons/test</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-test</artifactId>
         <jar>commons-test.jar</jar>
         <version>0.1</version>
         <url>http://jakarta.apache.org/commons/test</url>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
         <url>http://junit.org</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>junit</artifactId>
         <jar>junit.jar</jar>
         <version>3.8.1</version>
         <url>http://junit.org</url>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>maven</groupId>
         <artifactId>maven-site-plugin</artifactId>
         <version>1.6.1</version>
         <type>plugin</type>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>maven-site-plugin</artifactId>
         <jar>maven-site-plugin.jar</jar>
         <version>1.6.1</version>
         <type>plugin</type>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>directory-network</groupId>
         <artifactId>mina</artifactId>
         <version>0.8.0</version>
         <type>jar</type>
         <url>http://directory.apache.org/subprojects/network/mina/</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>mina</artifactId>
         <jar>mina0.jar</jar>
         <version>0.8.0</version>
         <type>jar</type>
         <url>http://directory.apache.org/subprojects/network/mina/</url>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.slf4j</groupId>
         <artifactId>nlog4j</artifactId>
         <version>1.2.17</version>
         <url>http://slf4j.org/nlog4j</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>nlog4j</artifactId>
         <jar>nlog4j.jar</jar>
         <version>1.2.17</version>
         <url>http://slf4j.org/nlog4j</url>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>regexp</groupId>
         <artifactId>regexp</artifactId>
         <version>1.2</version>
         <url>http://jakarta.apache.org/regexp/index.html</url>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>regexp</artifactId>
         <jar>regexp.jar</jar>
         <version>1.2</version>
         <url>http://jakarta.apache.org/regexp/index.html</url>
      </jpp>
   </dependency>
</depset>

--- NEW FILE: pom-maven2jpp-mapdeps.xsl ---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:param name="map" /> 
 <xsl:output method="xml" indent="yes" omit-xml-declaration="no"/> 
 <xsl:strip-space elements="*"/> 
 <xsl:template match="/project" >
  <xsl:element name="project">
   <xsl:copy-of select="child::*[not(self::dependencies)]"/>
   <xsl:if test="not(./dependencies)">
    <xsl:element name="dependencies">
     <xsl:for-each select="document($map)//add/dependency">
       <xsl:copy-of select="."/>
     </xsl:for-each>
    </xsl:element>
   </xsl:if>
   <xsl:apply-templates select="dependencies"/>
  </xsl:element>
 </xsl:template>
 <xsl:template match="dependencies" >
  <xsl:element name="dependencies">
   <xsl:for-each select="dependency">
    <xsl:if test="./artifactId">
     <xsl:call-template name="replace">
      <xsl:with-param name="artifact" select="./artifactId/text()"/>
     </xsl:call-template>
    </xsl:if>
    <xsl:if test="./id">
     <xsl:choose>
      <xsl:when test="substring-after(./id/text(),':') != ''">
       <xsl:call-template name="replace">
        <xsl:with-param name="artifact" select="substring-after(./id/text(),':')"/>
       </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
       <xsl:call-template name="replace">
        <xsl:with-param name="artifact" select="./id/text()"/>
       </xsl:call-template>
      </xsl:otherwise>
     </xsl:choose>
    </xsl:if>
   </xsl:for-each>
   <xsl:for-each select="document($map)//add/dependency">
    <xsl:copy-of select="."/>
   </xsl:for-each>
  </xsl:element>
 </xsl:template>
 <xsl:template name="replace">
  <xsl:param name="artifact"/>
  <xsl:variable name="this" select="."/>
  <xsl:element name="dependency">
   <xsl:choose>
    <xsl:when test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
     <xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
      <xsl:copy-of select="../jpp/*"/>
      <xsl:copy-of select="$this/properties"/>
     </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
     <xsl:copy-of select="./*"/>
    </xsl:otherwise>
   </xsl:choose>
  </xsl:element>
  <xsl:if test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
   <xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
    <xsl:for-each select="../add/dependency">
     <xsl:element name="dependency">
      <xsl:copy-of select="./*"/>
      <xsl:copy-of select="$this/properties"/>
     </xsl:element>
    </xsl:for-each>
   </xsl:for-each>
  </xsl:if>
 </xsl:template>
</xsl:stylesheet>




More information about the JPackage-commits mailing list