Skip to content

Commit

Permalink
Removing openshift from pom, moving static block into a ctor.
Browse files Browse the repository at this point in the history
  • Loading branch information
LightGuard authored and pmuir committed Aug 14, 2012
1 parent 34db925 commit 77d9761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
19 changes: 0 additions & 19 deletions cdi-portable-extension/pom.xml
Expand Up @@ -174,24 +174,5 @@
</dependency>
</dependencies>
</profile>
<profile>
<!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. -->
<!-- Use this profile for any OpenShift specific customization your app will need. -->
<!-- By default that is to put the resulting archive into the 'deployments' folder. -->
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
<id>openshift</id>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<outputDirectory>deployments</outputDirectory>
<warName>ROOT</warName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Expand Up @@ -37,10 +37,10 @@
* A simple CDI Portable Extension to "inject" values from XML into the instances of a bean.
*/
public class CreatureExtension implements Extension {
private static Document document;
private final Document document;
private final Logger log = Logger.getLogger(CreatureExtension.class.getName());

static {
public CreatureExtension() {
try {
InputStream creatureDefs = CreatureExtension.class.getClassLoader().getResourceAsStream("creatures.xml");
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
Expand Down

0 comments on commit 77d9761

Please sign in to comment.