Permalink
Browse files

tidy up tag folder

  • Loading branch information...
1 parent 8c779eb commit 7a975ea9c220a0912bdc4426426f47d9a4bfaa02 @reinhard reinhard committed Feb 11, 2007
@@ -1,17 +0,0 @@
-<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">
- <parent>
- <artifactId>cocoon-archetypes</artifactId>
- <groupId>org.apache.cocoon</groupId>
- <version>1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>cocoon-22-archetype-block</artifactId>
- <version>1.0.0-M3</version>
- <name>Cocoon 2.2 Block Archetype</name>
-
- <scm>
- <connection>scm:svn:https://svn.apache.org/repos/asf/cocoon/tags/cocoon-22-archetype-block-1.0.0-M3</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/cocoon/tags/cocoon-22-archetype-block-1.0.0-M3</developerConnection>
- <url>https://svn.apache.org/repos/asf/cocoon/tags/cocoon-22-archetype-block-1.0.0-M3</url>
- </scm>
-</project>
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2006 The Apache Software Foundation
-
- Licensed 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.
--->
-<archetype>
- <id>cocoon-archetype-block</id>
- <resources>
- <resource>src/main/java/demo/MyBean.java</resource>
- <resource>src/main/resources/COB-INF/sitemap.xmap</resource>
- <resource>src/main/resources/COB-INF/demo.js</resource>
- <resource>src/main/resources/COB-INF/demo.xml</resource>
- <resource>src/main/resources/META-INF/spring/demo-application-context.xml</resource>
- </resources>
-</archetype>
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2006 The Apache Software Foundation
-
- Licensed 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.
--->
-<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>
- <packaging>jar</packaging>
-
- <name>${artifactId}</name>
-
- <groupId>${groupId}</groupId>
- <artifactId>${artifactId}</artifactId>
- <version>1.0.0-SNAPSHOT</version>
-
- <build>
- <finalName>${artifactId}</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-deployer-plugin</artifactId>
- <version>1.0.0-M1</version>
- </plugin>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty6-plugin</artifactId>
- <version>6.0.0beta10</version>
- <configuration>
- <connectors>
- <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>8888</port>
- <maxIdleTime>30000</maxIdleTime>
- </connector>
- </connectors>
- <webAppSourceDirectory>target/${artifactId}</webAppSourceDirectory>
- <contextPath>/</contextPath>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-core</artifactId>
- <version>2.2.0-M1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-template-impl</artifactId>
- <version>1.0.0-M1</version>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>central</id>
- <name>Maven central repository</name>
- <url>http://ibiblio.org/maven2</url>
- </repository>
- <repository>
- <id>apache.snapshot</id>
- <name>Apache Snapshot Repository</name>
- <url>http://svn.apache.org/maven-snapshot-repository</url>
- </repository>
- </repositories>
-
-</project>
@@ -1,22 +0,0 @@
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-package demo;
-
-public class MyBean {
-
- public String message = "This is a message coming from a Spring bean.";
-
-}
@@ -1,27 +0,0 @@
-/*
- * Copyright 2005 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-//
-// @version $Id$
-//
-
-function demo() {
- var demoBean = cocoon.getComponent("demo");
- cocoon.sendPage("screens/demo",
- {
- "message" : demoBean.message
- }
- );
-}
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2006 The Apache Software Foundation
-
- Licensed 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.
--->
-<demo>
- <module>${groupId}:${artifactId}</module>
- <spring>#{message}</spring>
-</demo>
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2006 The Apache Software Foundation
-
- Licensed 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.
--->
-<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-
- <map:flow language="javascript">
- <map:script src="demo.js"/>
- </map:flow>
-
- <map:pipelines>
- <map:pipeline>
- <map:match pattern="">
- <map:call function="demo"/>
- </map:match>
- <map:match pattern="screens/demo">
- <map:generate src="demo.xml" type="jx"/>
- <map:serialize type="xml"/>
- </map:match>
- </map:pipeline>
- </map:pipelines>
-
-</map:sitemap>
-
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
-<!--
- Copyright 2006 The Apache Software Foundation
-
- Licensed 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.
--->
-<beans>
- <bean id="demo" class="demo.MyBean" singleton="true"/>
-</beans>
@@ -1,70 +0,0 @@
-#!/usr/bin/perl -W
-
-#Use this script to generate the archetype descriptor, as the format does not allow wildcards yet
-# perl makeDescriptor.pl > META-INF/archetype.xml
-
-use Data::Dumper;
-
-#find all files
-my @fileList=`find . -type d -name '.svn' -prune -o -type f -print` ;
-my @sources;
-my @resources;
-my @testResources;
-my @testSources;
-foreach my $file (@fileList){
- next unless $file=~/\.\/archetype-resources/ ;
- #attempt to skip binary files alltogether as they make the archetype deployer barf sometimes
- next if $file=~/\.ico$/;
- next if $file=~/\.png$/;
- next if $file=~/\.jpg$/;
- next if $file=~/\.gif$/;
- chomp ($file);
- $file =~ s/\.\/archetype-resources\///;
-
- if ($file=~/src\/main\/java/){
- push(@sources, $file);
- }
-
- if ($file=~/src\/main\/webapp/){
- push (@resources, $file);
- }
-
- if ($file=~/src\/test\/java/){
- push (@testSources, $file);
- }
-
- if ($file=~/src\/\/test\/resources/){
- push (@testResources, $file);
- }
-
- if ($file=~/src\/main\/resources/){
- push (@resources, $file);
- }
-}
-
-# ARCHETYPE
-print "<archetype>\n";
-print "<id>cocoon-archetype-block</id>\n";
-
-# SOURCES
-print "<sources>\n";
-foreach my $source (@sources) {
- print "<source>$source</source>\n";
-}
-print "</sources>\n";
-
-# TESTSOURCES
-print "<testSources>\n";
-foreach my $testSource (@testSources) {
- print "<testSource>$testSource</testSource>\n";
-}
-print "</testSources>\n";
-
-# RESOURCES
-print "<resources>\n";
-foreach my $resource (@resources) {
- print "<resource>$resource</resource>\n";
-}
-print "</resources>\n";
-
-print "</archetype>\n";

0 comments on commit 7a975ea

Please sign in to comment.