You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2008/12/17 23:52:07 UTC
svn commit: r727565 - in /incubator/openwebbeans/trunk: pom.xml
samples/guess/pom.xml samples/pom.xml webbeans-api/pom.xml
webbeans-impl/pom.xml
webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
Author: gerdogdu
Date: Wed Dec 17 14:52:07 2008
New Revision: 727565
URL: http://svn.apache.org/viewvc?rev=727565&view=rev
Log:
Organizing POM files and small correction on ClassUtil class
Modified:
incubator/openwebbeans/trunk/pom.xml
incubator/openwebbeans/trunk/samples/guess/pom.xml
incubator/openwebbeans/trunk/samples/pom.xml
incubator/openwebbeans/trunk/webbeans-api/pom.xml
incubator/openwebbeans/trunk/webbeans-impl/pom.xml
incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
Modified: incubator/openwebbeans/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/pom.xml?rev=727565&r1=727564&r2=727565&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/pom.xml (original)
+++ incubator/openwebbeans/trunk/pom.xml Wed Dec 17 14:52:07 2008
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
-
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
@@ -18,14 +16,18 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>4</version>
+ </parent>
<groupId>org.apache.openwebbeans</groupId>
<artifactId>openwebbeans</artifactId>
<name>OpenWebBeans</name>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
- <description>
- Apache OpenWebBeans is an open source implementation of JSR-299 WebBeans
- </description>
+ <description> Apache OpenWebBeans is an open source implementation of
+ JSR-299 WebBeans </description>
<organization>
<name>The Apache OpenWebBeans development community</name>
<url>http://incubator.apache.org/openwebbeans</url>
@@ -51,6 +53,7 @@
<modules>
<module>webbeans-api</module>
<module>webbeans-impl</module>
+ <module>samples</module>
</modules>
<repositories>
<repository>
@@ -59,103 +62,98 @@
<layout>legacy</layout>
</repository>
</repositories>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.14</version>
- </dependency>
- <dependency>
- <groupId>org.apache.openwebbeans</groupId>
- <artifactId>webbeans-api</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-servlet_2.5_spec</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs </groupId>
- <artifactId>geronimo-ejb_3.0_spec</artifactId>
- <version>1.0-M1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-el_1.0_spec</artifactId>
- <version>1.0-M1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.core</groupId>
- <artifactId>myfaces-api</artifactId>
- <version>1.2.4</version>
- </dependency>
- <dependency>
- <groupId>javassist</groupId>
- <artifactId>javassist</artifactId>
- <version>3.8.0.GA</version>
- </dependency>
- <dependency>
- <groupId>net.sf.scannotation</groupId>
- <artifactId>scannotation</artifactId>
- <version>1.0.2</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.5</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>javax.annotation</groupId>
- <artifactId>jsr250-api</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-jpa_3.0_spec</artifactId>
- <version>1.1.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-interceptor_3.0_spec</artifactId>
- <version>1.0.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-jta_1.1_spec</artifactId>
- <version>1.1.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-jsp_2.1_spec</artifactId>
- <version>1.0.1</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.openwebbeans</groupId>
- <artifactId>webbeans-api</artifactId>
- <version>${openwebbeans.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.openwebbeans</groupId>
- <artifactId>webbeans-impl</artifactId>
- <version>${openwebbeans.version}</version>
- </dependency>
-
-
- </dependencies>
- </dependencyManagement>
-
- <properties>
- <openwebbeans.version>1.0.0-SNAPSHOT</openwebbeans.version>
- </properties>
-
-</project>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.openwebbeans</groupId>
+ <artifactId>webbeans-api</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-servlet_2.5_spec</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs
+ </groupId>
+ <artifactId>geronimo-ejb_3.0_spec</artifactId>
+ <version>1.0-M1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-el_1.0_spec</artifactId>
+ <version>1.0-M1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <version>1.2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>3.8.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.scannotation</groupId>
+ <artifactId>scannotation</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jpa_3.0_spec</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-interceptor_3.0_spec</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jta_1.1_spec</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jsp_2.1_spec</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.openwebbeans</groupId>
+ <artifactId>webbeans-api</artifactId>
+ <version>${openwebbeans.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.openwebbeans</groupId>
+ <artifactId>webbeans-impl</artifactId>
+ <version>${openwebbeans.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <properties>
+ <openwebbeans.version>1.0.0-SNAPSHOT</openwebbeans.version>
+ </properties>
+</project>
\ No newline at end of file
Modified: incubator/openwebbeans/trunk/samples/guess/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/guess/pom.xml?rev=727565&r1=727564&r2=727565&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/guess/pom.xml (original)
+++ incubator/openwebbeans/trunk/samples/guess/pom.xml Wed Dec 17 14:52:07 2008
@@ -1,49 +1,46 @@
-<?xml version="1.0" encoding="UTF-8"?><project>
-
- <parent>
- <artifactId>samples</artifactId>
- <groupId>org.apache.openwebbeans</groupId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.openwebbeans</groupId>
- <artifactId>guess</artifactId>
- <packaging>war</packaging>
- <name>OpenWebBeans :: Guess and Login Application</name>
- <version>1.0.0-SNAPSHOT</version>
- <description>Simple login and guess application</description>
- <url>http://maven.apache.org</url>
-
- <build>
- <finalName>guess</finalName>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.core</groupId>
- <artifactId>myfaces-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-servlet_2.5_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.sun.facelets</groupId>
- <artifactId>jsf-facelets</artifactId>
- <version>1.1.11</version>
- </dependency>
- <dependency>
- <groupId>org.apache.openwebbeans</groupId>
- <artifactId>webbeans-api</artifactId>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <parent>
+ <artifactId>samples</artifactId>
+ <groupId>org.apache.openwebbeans</groupId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>guess</artifactId>
+ <packaging>war</packaging>
+ <name>OpenWebBeans :: Guess and Login Application</name>
+ <version>1.0.0-SNAPSHOT</version>
+ <description>Simple login and guess application</description>
+ <url>http://maven.apache.org</url>
+ <build>
+ <finalName>guess</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-servlet_2.5_spec
+ </artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.11</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.openwebbeans</groupId>
+ <artifactId>webbeans-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Modified: incubator/openwebbeans/trunk/samples/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/pom.xml?rev=727565&r1=727564&r2=727565&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/pom.xml (original)
+++ incubator/openwebbeans/trunk/samples/pom.xml Wed Dec 17 14:52:07 2008
@@ -1,21 +1,18 @@
<?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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.openwebbeans</groupId>
- <artifactId>samples</artifactId>
- <packaging>pom</packaging>
- <name>OpenWebBeans :: Samples</name>
- <version>1.0.0-SNAPSHOT</version>
- <description>Contains samples project for openwebbeans.</description>
-
- <parent>
- <artifactId>openwebbeans</artifactId>
- <groupId>org.apache.openwebbeans</groupId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <modules>
- <module>guess</module>
- </modules>
-
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.openwebbeans</groupId>
+ <artifactId>openwebbeans</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>samples</artifactId>
+ <packaging>pom</packaging>
+ <name>OpenWebBeans :: Samples</name>
+ <version>1.0.0-SNAPSHOT</version>
+ <description>Contains samples project for openwebbeans.</description>
+ <modules>
+ <module>guess</module>
+ </modules>
</project>
\ No newline at end of file
Modified: incubator/openwebbeans/trunk/webbeans-api/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/pom.xml?rev=727565&r1=727564&r2=727565&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/pom.xml (original)
+++ incubator/openwebbeans/trunk/webbeans-api/pom.xml Wed Dec 17 14:52:07 2008
@@ -24,7 +24,6 @@
<artifactId>openwebbeans</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
- <groupId>org.apache.openwebbeans</groupId>
<artifactId>webbeans-api</artifactId>
<name>OpenWebBeans :: WebBeans-API</name>
<packaging>jar</packaging>
Modified: incubator/openwebbeans/trunk/webbeans-impl/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/pom.xml?rev=727565&r1=727564&r2=727565&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/pom.xml (original)
+++ incubator/openwebbeans/trunk/webbeans-impl/pom.xml Wed Dec 17 14:52:07 2008
@@ -24,7 +24,6 @@
<artifactId>openwebbeans</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
- <groupId>org.apache.openwebbeans</groupId>
<artifactId>webbeans-impl</artifactId>
<name>OpenWebBeans :: WebBeans-Impl</name>
<packaging>jar</packaging>
Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java?rev=727565&r1=727564&r2=727565&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java (original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java Wed Dec 17 14:52:07 2008
@@ -636,7 +636,7 @@
public static <T> Constructor<T>[] getConstructors(Class<T> clazz)
{
Asserts.nullCheckForClass(clazz);
- return clazz.getDeclaredConstructors();
+ return (Constructor<T>[]) clazz.getDeclaredConstructors();
}
public static <T> boolean isDefaultConstructorExist(Class<T> clazz)