You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2013/01/13 14:48:03 UTC
svn commit: r1432614 - in /servicemix/smx4/bundles/trunk: ./
commons-jxpath-1.3/ commons-jxpath-1.3/src/ commons-jxpath-1.3/src/main/
commons-jxpath-1.3/src/main/resources/
commons-jxpath-1.3/src/main/resources/OSGI-INF/
Author: jbonofre
Date: Sun Jan 13 13:48:02 2013
New Revision: 1432614
URL: http://svn.apache.org/viewvc?rev=1432614&view=rev
Log:
[SMX4-1341] Create OSGi bundle for commons-jxpath 1.3
Added:
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/pom.xml
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/OSGI-INF/
servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/OSGI-INF/bundle.info
Modified:
servicemix/smx4/bundles/trunk/pom.xml
Added: servicemix/smx4/bundles/trunk/commons-jxpath-1.3/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/commons-jxpath-1.3/pom.xml?rev=1432614&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/commons-jxpath-1.3/pom.xml (added)
+++ servicemix/smx4/bundles/trunk/commons-jxpath-1.3/pom.xml Sun Jan 13 13:48:02 2013
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>bundles-pom</artifactId>
+ <version>10</version>
+ <relativePath>../bundles-pom/pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>org.apache.servicemix.bundles.commons-jxpath</artifactId>
+ <version>1.3_1-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+ <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+ <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
+
+ <properties>
+ <pkgGroupId>commons-jxpath</pkgGroupId>
+ <pkgArtifactId>commons-jxpath</pkgArtifactId>
+ <pkgVersion>1.3</pkgVersion>
+ <servicemix.osgi.export.pkg>
+ org.apache.commons.jxpath
+ </servicemix.osgi.export.pkg>
+ <servicemix.osgi.import.pkg>
+ javax.xml*,
+ org.w3c.dom,
+ org.apache.commons.beanutils*;version="[1.4,2)",
+ javax.servlet*;resolution:=optional;version="[2.2,3)",
+ org.jdom*;resolution:=optional;version="[1.0,2)"
+ </servicemix.osgi.import.pkg>
+ <servicemix.osgi.failok>true</servicemix.osgi.failok>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>${pkgGroupId}</groupId>
+ <artifactId>${pkgArtifactId}</artifactId>
+ <version>${pkgVersion}</version>
+ </dependency>
+
+ <!-- sources -->
+ <!-- Not available on Central
+ <dependency>
+ <groupId>${pkgGroupId}</groupId>
+ <artifactId>${pkgArtifactId}</artifactId>
+ <version>${pkgVersion}</version>
+ <classifier>sources</classifier>
+ </dependency>
+ -->
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <artifactSet>
+ <includes>
+ <include>${pkgGroupId}:${pkgArtifactId}</include>
+ </includes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
+ <excludes>
+ <exclude>**</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Added: servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/OSGI-INF/bundle.info
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/OSGI-INF/bundle.info?rev=1432614&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/OSGI-INF/bundle.info (added)
+++ servicemix/smx4/bundles/trunk/commons-jxpath-1.3/src/main/resources/OSGI-INF/bundle.info Sun Jan 13 13:48:02 2013
@@ -0,0 +1,43 @@
+\u001B[1mSYNOPSIS\u001B[0m
+ ${project.description}
+
+ Original Maven URL:
+ \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+ The org.apache.commons.jxpath package defines a simple interpreter of an expression language called XPath.
+ JXPath applies XPath expressions to graphs of objects of all kinds: JavaBeans, Maps, Servlet contexts,
+ DOM etc, including mixtures thereof.
+
+ Consider this example:
+
+ \u001B[32mAddress address = (Address)JXPathContext.newContext(vendor).\u001B[0m
+ \u001B[32mgetValue("locations[address/zipCode='90210']/address");\u001B[0m
+
+ This XPath expression is equivalent to the following Java code:
+
+ \u001B[32mAddress address = null;\u001B[0m
+ \u001B[32mCollection locations = vendor.getLocations();\u001B[0m
+ \u001B[32mIterator it = locations.iterator();\u001B[0m
+ \u001B[32mwhile (it.hasNext()){\u001B[0m
+ \u001B[32mLocation location = (Location)it.next();\u001B[0m
+ \u001B[32mString zipCode = location.getAddress().getZipCode();\u001B[0m
+ \u001B[32mif (zipCode.equals("90210")){\u001B[0m
+ \u001B[32maddress = location.getAddress();\u001B[0m
+ \u001B[32mbreak;\u001B[0m
+ \u001B[32m}\u001B[0m
+ \u001B[32m}\u001B[0m
+
+ XPath was standardized by W3C and is used in both XSLT and XPointer.
+
+ If you want to find out more about XPath, a good place to start is an excellent XPath Tutorial by W3Schools
+
+ The official definition of XPath by W3C can be found at XML Path Language (XPath) Version 1.0
+
+ Primary applications of JXPath are in scripting: JSP and similar template/script based technologies.
+ However, programmers who prefer XML-flavored APIs, should consider JXPath as an alternative to other
+ expression languages as well. JXPath is a must-have tool for those who work with mixtures of Java objects
+ and XML and need to frequently traverse through graphs of those.
+
+\u001B[1mSEE ALSO\u001B[0m
+ \u001B[36mhttp://commons.apache.org/jxpath/\u001B[0m
Modified: servicemix/smx4/bundles/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/pom.xml?rev=1432614&r1=1432613&r2=1432614&view=diff
==============================================================================
--- servicemix/smx4/bundles/trunk/pom.xml (original)
+++ servicemix/smx4/bundles/trunk/pom.xml Sun Jan 13 13:48:02 2013
@@ -63,6 +63,7 @@
<module>commons-configuration-1.8</module>
<module>commons-configuration-1.9</module>
<module>dnsjava-2.1.1</module>
+ <module>commons-jxpath-1.3</module>
</modules>
</project>