|
From: <jim...@us...> - 2011-09-15 04:33:23
|
Revision: 1116
http://zkforge.svn.sourceforge.net/zkforge/?rev=1116&view=rev
Author: jimmyshiau
Date: 2011-09-15 04:33:13 +0000 (Thu, 15 Sep 2011)
Log Message:
-----------
add zk-archetype
Added Paths:
-----------
trunk/zk-archetype/
trunk/zk-archetype/.project
trunk/zk-archetype/.settings/
trunk/zk-archetype/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/pom.xml
trunk/zk-archetype/zk-archetype-component/
trunk/zk-archetype/zk-archetype-component/.classpath
trunk/zk-archetype/zk-archetype-component/.project
trunk/zk-archetype/zk-archetype-component/.settings/
trunk/zk-archetype/zk-archetype-component/.settings/org.eclipse.jdt.core.prefs
trunk/zk-archetype/zk-archetype-component/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/zk-archetype-component/assembly/
trunk/zk-archetype/zk-archetype-component/assembly/bundle.xml
trunk/zk-archetype/zk-archetype-component/pom.xml
trunk/zk-archetype/zk-archetype-component/src/
trunk/zk-archetype/zk-archetype-component/src/main/
trunk/zk-archetype/zk-archetype-component/src/main/resources/
trunk/zk-archetype/zk-archetype-component/src/main/resources/META-INF/
trunk/zk-archetype/zk-archetype-component/src/main/resources/META-INF/maven/
trunk/zk-archetype/zk-archetype-component/src/main/resources/META-INF/maven/archetype-metadata.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.classpath
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.project
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bin.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bundle.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/source.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/src.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/pom.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/Version.java
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/__component-class__.java
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/metainfo/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/metainfo/zk/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/metainfo/zk/lang-addon.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/__component-class__.js
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/css/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/css/__component-name__.css.dsp
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/mold/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/mold/__component-name__.js
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/zk.wpd
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/java/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/java/ctrl/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/java/ctrl/DemoWindowComposer.java
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/META-INF/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/META-INF/MANIFEST.MF
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/WEB-INF/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/WEB-INF/web.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/WEB-INF/zk.xml
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/index.zul
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/timeout.zul
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/zkdoc/
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/zkdoc/COPYING
trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/zkdoc/release-note
trunk/zk-archetype/zk-archetype-component/target/
trunk/zk-archetype/zk-archetype-component/target/archive-tmp/
trunk/zk-archetype/zk-archetype-component/target/classes/
trunk/zk-archetype/zk-archetype-component/target/classes/META-INF/
trunk/zk-archetype/zk-archetype-component/target/classes/META-INF/maven/
trunk/zk-archetype/zk-archetype-component/target/classes/META-INF/maven/archetype-metadata.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/.classpath
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/.project
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/.settings/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/.settings/org.eclipse.jdt.core.prefs
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/.settings/org.eclipse.m2e.core.prefs
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/assembly/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/assembly/bin.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/assembly/bundle.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/assembly/source.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/assembly/src.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/pom.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/java/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/java/Version.java
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/java/__component-class__.java
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/metainfo/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/metainfo/zk/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/metainfo/zk/lang-addon.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/__component-class__.js
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/css/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/css/__component-name__.css.dsp
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/mold/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/mold/__component-name__.js
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/main/resources/web/js/__artifactId__/zk.wpd
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/java/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/java/ctrl/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/java/ctrl/DemoWindowComposer.java
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/META-INF/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/META-INF/MANIFEST.MF
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/WEB-INF/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/WEB-INF/web.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/WEB-INF/zk.xml
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/index.zul
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/src/test/webapp/timeout.zul
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/zkdoc/
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/zkdoc/COPYING
trunk/zk-archetype/zk-archetype-component/target/classes/archetype-resources/zkdoc/release-note
trunk/zk-archetype/zk-archetype-component/target/zk-archetype-component-0.8.1-bundle.jar
trunk/zk-archetype/zk-archetype-component/target/zk-archetype-component-0.8.1.jar
trunk/zk-archetype/zk-archetype-webapp/
trunk/zk-archetype/zk-archetype-webapp/.classpath
trunk/zk-archetype/zk-archetype-webapp/.project
trunk/zk-archetype/zk-archetype-webapp/.settings/
trunk/zk-archetype/zk-archetype-webapp/.settings/org.eclipse.jdt.core.prefs
trunk/zk-archetype/zk-archetype-webapp/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/zk-archetype-webapp/assembly/
trunk/zk-archetype/zk-archetype-webapp/assembly/bundle.xml
trunk/zk-archetype/zk-archetype-webapp/pom.xml
trunk/zk-archetype/zk-archetype-webapp/src/
trunk/zk-archetype/zk-archetype-webapp/src/main/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/META-INF/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/META-INF/maven/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/META-INF/maven/archetype-metadata.xml
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/.classpath
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/.project
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/.settings/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/assembly/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/assembly/demo.xml
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/pom.xml
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/java/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/java/DemoWindowComposer.java
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/META-INF/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/zk.xml
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/index.zul
trunk/zk-archetype/zk-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/timeout.zul
trunk/zk-archetype/zk-archetype-webapp/target/
trunk/zk-archetype/zk-archetype-webapp/target/archive-tmp/
trunk/zk-archetype/zk-archetype-webapp/target/classes/
trunk/zk-archetype/zk-archetype-webapp/target/classes/META-INF/
trunk/zk-archetype/zk-archetype-webapp/target/classes/META-INF/maven/
trunk/zk-archetype/zk-archetype-webapp/target/classes/META-INF/maven/archetype-metadata.xml
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/.classpath
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/.project
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/.settings/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/.settings/org.eclipse.jdt.core.prefs
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/.settings/org.eclipse.m2e.core.prefs
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/.settings/org.maven.ide.eclipse.prefs
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/assembly/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/assembly/demo.xml
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/pom.xml
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/java/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/java/DemoWindowComposer.java
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/META-INF/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/WEB-INF/
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/WEB-INF/web.xml
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/WEB-INF/zk.xml
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/index.zul
trunk/zk-archetype/zk-archetype-webapp/target/classes/archetype-resources/src/main/webapp/timeout.zul
trunk/zk-archetype/zk-archetype-webapp/target/zk-archetype-webapp-0.8.1-bundle.jar
trunk/zk-archetype/zk-archetype-webapp/target/zk-archetype-webapp-0.8.1.jar
Added: trunk/zk-archetype/.project
===================================================================
--- trunk/zk-archetype/.project (rev 0)
+++ trunk/zk-archetype/.project 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>zk-archetype</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/zk-archetype/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- trunk/zk-archetype/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ trunk/zk-archetype/.settings/org.maven.ide.eclipse.prefs 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,8 @@
+#Mon Jul 18 12:38:12 CST 2011
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Added: trunk/zk-archetype/pom.xml
===================================================================
--- trunk/zk-archetype/pom.xml (rev 0)
+++ trunk/zk-archetype/pom.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,14 @@
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.zkoss</groupId>
+ <artifactId>zk-archetype</artifactId>
+ <version>0.8.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>ZK Archetype Project</name>
+ <description>ZK Archetype Project</description>
+ <modules>
+ <module>zk-archetype-component</module>
+ <module>zk-archetype-webapp</module>
+ </modules>
+</project>
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/.classpath
===================================================================
--- trunk/zk-archetype/zk-archetype-component/.classpath (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/.classpath 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: trunk/zk-archetype/zk-archetype-component/.project
===================================================================
--- trunk/zk-archetype/zk-archetype-component/.project (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/.project 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>zk-archetype-component</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/zk-archetype/zk-archetype-component/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/zk-archetype/zk-archetype-component/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/.settings/org.eclipse.jdt.core.prefs 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,6 @@
+#Wed Jul 13 17:27:28 CST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/zk-archetype/zk-archetype-component/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- trunk/zk-archetype/zk-archetype-component/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/.settings/org.maven.ide.eclipse.prefs 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,8 @@
+#Wed Jul 13 17:27:12 CST 2011
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Added: trunk/zk-archetype/zk-archetype-component/assembly/bundle.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/assembly/bundle.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/assembly/bundle.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,19 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>bundle</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <files>
+ <file>
+ <source>pom.xml</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ <file>
+ <source>${project.build.directory}/${project.artifactId}-${project.version}.jar</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ </files>
+</assembly>
Added: trunk/zk-archetype/zk-archetype-component/pom.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/pom.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/pom.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,51 @@
+<?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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.zkoss</groupId>
+ <artifactId>zk-archetype-component</artifactId>
+ <version>0.8.1</version>
+ <packaging>maven-archetype</packaging>
+
+ <name>zk-archetype-component</name>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0</version>
+ </extension>
+ </extensions>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>assembly/bundle.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/META-INF/maven/archetype-metadata.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/META-INF/maven/archetype-metadata.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/META-INF/maven/archetype-metadata.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="zkcomponent"
+ xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <requiredProperties>
+ <requiredProperty key="zk-version-since">
+ <defaultValue>5.0.6</defaultValue>
+ </requiredProperty>
+ <requiredProperty key="component-name"/>
+ <requiredProperty key="component-class"/>
+ </requiredProperties>
+
+ <fileSets>
+ <fileSet encoding="UTF-8">
+ <directory>assembly</directory>
+ <includes>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>zkdoc</directory>
+ <includes>
+ <include>COPYING</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>zkdoc</directory>
+ <includes>
+ <include>release-note</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*.xml</include>
+ <include>**/zk.wpd</include>
+ <include>**/__component-class__.js</include>
+ <include>**/__component-name__.js</include>
+ <include>**/__component-name__.css.dsp</include>
+ </includes>
+ </fileSet>
+ <!-- webapp test -->
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/test/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>src/test/webapp</directory>
+ <includes>
+ <include>timeout.zul</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/test/webapp</directory>
+ <includes>
+ <include>index.zul</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>src/test/webapp/META-INF</directory>
+ <includes>
+ <include>MANIFEST.MF</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>src/test/webapp/WEB-INF</directory>
+ <includes>
+ <include>zk.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/test/webapp/WEB-INF</directory>
+ <includes>
+ <include>web.xml</include>
+ </includes>
+ </fileSet>
+ <!-- eclipse project setting -->
+ <fileSet encoding="UTF-8">
+ <directory>.settings</directory>
+ <includes>
+ <include>**/*.prefs</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory></directory>
+ <includes>
+ <include>.project</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory></directory>
+ <includes>
+ <include>.classpath</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</archetype-descriptor>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.classpath
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.classpath (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.classpath 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.project
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.project (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.project 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>${artifactId}</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,6 @@
+#Wed Jul 13 15:02:00 CST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,5 @@
+#Mon Sep 05 16:36:01 CST 2011
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/.settings/org.maven.ide.eclipse.prefs 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,8 @@
+#Wed Jul 13 15:02:00 CST 2011
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bin.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bin.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bin.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,34 @@
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>bin</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/javadoc</directory>
+ <outputDirectory>/javadoc</outputDirectory>
+ </fileSet>
+ </fileSets>
+ <files>
+ <file>
+ <source>${project.build.directory}/${project.artifactId}-${version}.jar</source>
+ <destName>${project.artifactId}.jar</destName>
+ <outputDirectory>/dist/lib</outputDirectory>
+ </file>
+ <file>
+ <source>${project.build.directory}/${project.artifactId}-source.jar</source>
+ <outputDirectory>/dist/src</outputDirectory>
+ </file>
+ <file>
+ <source>${project.basedir}/zkdoc/COPYING</source>
+ <outputDirectory>/doc</outputDirectory>
+ </file>
+ <file>
+ <source>${project.basedir}/zkdoc/release-note</source>
+ <outputDirectory>/doc</outputDirectory>
+ </file>
+ </files>
+</assembly>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bundle.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bundle.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/bundle.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,23 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>bundle</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <files>
+ <file>
+ <source>pom.xml</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ <file>
+ <source>${project.build.directory}/${project.artifactId}-${project.version}.jar</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ <file>
+ <source>${project.build.directory}/${project.artifactId}-${project.version}-source.jar</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ </files>
+</assembly>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/source.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/source.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/source.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,16 @@
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>source</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}/src/main/java</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/src.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/src.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/assembly/src.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,28 @@
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>src</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}</directory>
+ <excludes>
+ <exclude>${project.build.directory}/</exclude>
+ </excludes>
+ <outputDirectory>/${project.artifactId}</outputDirectory>
+ </fileSet>
+ </fileSets>
+ <files>
+ <file>
+ <source>${project.basedir}/zkdoc/COPYING</source>
+ <outputDirectory>/doc</outputDirectory>
+ </file>
+ <file>
+ <source>${project.basedir}/zkdoc/release-note</source>
+ <outputDirectory>/doc</outputDirectory>
+ </file>
+ </files>
+</assembly>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/pom.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/pom.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,216 @@
+<?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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+ <properties>
+ <zk.version>${zk-version-since}</zk.version>
+ <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
+ <packname>-${version}-FL-${maven.build.timestamp}</packname>
+ </properties>
+ <packaging>jar</packaging>
+ <name>The ${artifactId} library</name>
+ <description>The ${artifactId} library</description>
+ <licenses>
+ <license>
+ <name>GNU General Public License, Version 2.0</name>
+ <url>http://www.gnu.org/licenses/gpl.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <repositories>
+ <repository>
+ <id>zk repository</id>
+ <url>http://mavensync.zkoss.org/maven2</url>
+ </repository>
+ <repository>
+ <id>ZK EE Evaluation</id>
+ <url>http://mavensync.zkoss.org/zk/ee-eval</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>zkmaven</id>
+ <name>zk maven repository</name>
+ <url>http://mavensync.zkoss.org/maven2/</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.zkoss.theme</groupId>
+ <artifactId>breeze</artifactId>
+ <version>${zk.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.zkoss.zk</groupId>
+ <artifactId>zkmax</artifactId>
+ <version>${zk.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.zkoss.zk</groupId>
+ <artifactId>zkplus</artifactId>
+ <version>${zk.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.zkoss.zk</groupId>
+ <artifactId>zhtml</artifactId>
+ <version>${zk.version}</version>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+ <build>
+ <testOutputDirectory>${project.build.directory}/classes</testOutputDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.zkoss.maven</groupId>
+ <artifactId>yuicompressor-maven-plugin-zk</artifactId>
+ <version>1.1.6</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compress</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <excludes>
+ <exclude>**/ctrl/**</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <charset>UTF-8</charset>
+ <reportOutputDirectory>${project.basedir}/target/javadoc</reportOutputDirectory>
+ <destDir>${artifactId}</destDir>
+ <show>protected</show>
+ </configuration>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>source</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>${project.artifactId}</finalName>
+ <descriptors>
+ <descriptor>assembly/source.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ <execution>
+ <id>bin</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>${project.artifactId}-bin${packname}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>assembly/bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ <execution>
+ <id>bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>assembly/source.xml</descriptor>
+ <descriptor>assembly/bundle.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ <execution>
+ <id>src</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>${project.artifactId}-src${packname}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>assembly/src.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>
+ org.zkoss.maven
+ </groupId>
+ <artifactId>
+ yuicompressor-maven-plugin-zk
+ </artifactId>
+ <versionRange>
+ [1.1.6,)
+ </versionRange>
+ <goals>
+ <goal>compress</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/Version.java
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/Version.java (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/Version.java 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,7 @@
+package ${package};
+
+public class Version {
+ /** Returns the version UID.
+ */
+ public static final String UID = "${version}";
+}
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/__component-class__.java
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/__component-class__.java (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/java/__component-class__.java 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,40 @@
+package ${package};
+
+import org.zkoss.lang.Objects;
+import org.zkoss.zul.impl.XulElement;
+
+public class ${component-class} extends XulElement {
+
+ /* Here's a simple example for how to implements a member field */
+
+ private String _text;
+
+ public String getText() {
+ return _text;
+ }
+
+ public void setText(String text) {
+
+ if (!Objects.equals(_text, text)) {
+ _text = text;
+ smartUpdate("text", _text);
+ }
+ }
+
+
+ //super//
+ protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
+ throws java.io.IOException {
+ super.renderProperties(renderer);
+
+ render(renderer, "text", _text);
+ }
+
+ /**
+ * The default zclass is "z-${component-name}"
+ */
+ public String getZclass() {
+ return (this._zclass != null ? this._zclass : "z-${component-name}");
+ }
+}
+
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/metainfo/zk/lang-addon.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/metainfo/zk/lang-addon.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/metainfo/zk/lang-addon.xml 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,32 @@
+<language-addon>
+ <addon-name>${artifactId}</addon-name>
+ <version>
+ <version-class>${package}.Version</version-class>
+ <version-uid>${version}</version-uid>
+ <zk-version>${zk-version-since}</zk-version><!-- or later -->
+ </version>
+
+ <language-name>xul/html</language-name>
+ <component>
+ <component-name>${component-name}</component-name> <!-- required -->
+ <component-class>${package}.${component-class}</component-class> <!-- required -->
+ <widget-class>${artifactId}.${component-class}</widget-class> <!-- required -->
+ <mold>
+ <mold-name>default</mold-name>
+ <mold-uri>mold/${component-name}.js</mold-uri>
+
+ <!--
+ == Tip in advance ==
+ You don't have to specify a css.dsp if you need not ,
+ but usually you need it.
+
+ You could assign a .css file ,too.
+
+ The css.dsp is almost as same as CSS file ,
+ but have more powerful enhancement. (like EL support.)
+ ====
+ -->
+ <css-uri>css/${component-name}.css.dsp</css-uri>
+ </mold>
+ </component>
+</language-addon>
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/__component-class__.js
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/__component-class__.js (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/__component-class__.js 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,103 @@
+/**
+ *
+ * Base naming rule:
+ * The stuff start with "_" means private , end with "_" means protect ,
+ * others mean public.
+ *
+ * All the member field should be private.
+ *
+ * Life cycle: (It's very important to know when we bind the event)
+ * A widget will do this by order :
+ * 1. $init
+ * 2. set attributes (setters)
+ * 3. rendering mold (@see mold/${artifactId}.js )
+ * 4. call bind_ to bind the event to dom .
+ *
+ * this.deskop will be assigned after super bind_ is called,
+ * so we use it to determine whether we need to update view
+ * manually in setter or not.
+ * If this.desktop exist , means it's after mold rendering.
+ *
+ */
+${artifactId}.${component-class} = zk.$extends(zul.Widget, {
+ _text:'', //default value for text attribute
+
+ /**
+ * Don't use array/object as a member field, it's a restriction for ZK object,
+ * it will work like a static , share with all the same Widget class instance.
+ *
+ * if you really need this , assign it in bind_ method to prevent any trouble.
+ *
+ * TODO:check array or object , must be one of them ...I forgot. -_- by Tony
+ */
+
+ $define: {
+ /**
+ * The member in $define means that it has its own setter/getter.
+ * (It's a coding sugar.)
+ *
+ * If you don't get this ,
+ * you could see the comment below for another way to do this.
+ *
+ * It's more clear.
+ *
+ */
+ text: function() { //this function will be called after setText() .
+
+ if(this.desktop) {
+ //updated UI here.
+ }
+ }
+ },
+ /**
+ * If you don't like the way in $define ,
+ * you could do the setter/getter by yourself here.
+ *
+ * Like the example below, they are the same as we mentioned in $define section.
+ */
+ /*
+ getText:function(){ return this._text; },
+ setText:function(val){
+ this._text = val;
+ if(this.desktop){
+ //update the UI here.
+ }
+ },
+ */
+
+ bind_: function () {
+ /**
+ * For widget lifecycle , the super bind_ should be called
+ * as FIRST STATEMENT in the function.
+ * DONT'T forget to call supers in bind_ , or you will get error.
+ */
+ this.$supers(${artifactId}.${component-class},'bind_', arguments);
+
+ //A example for domListen_ , REMEMBER to do domUnlisten in unbind_.
+ //this.domListen_(this.$n("cave"), "onClick", "_doItemsClick");
+ },
+
+ /*
+ A example for domListen_ listener.
+ */
+ /*
+ _doItemsClick: function (evt) {
+ alert("item click event fired");
+ },
+ */
+ unbind_: function () {
+
+ // A example for domUnlisten_ , should be paired with bind_
+ // this.domUnlisten_(this.$n("cave"), "onClick", "_doItemsClick");
+
+ /*
+ * For widget lifecycle , the super unbind_ should be called
+ * as LAST STATEMENT in the function.
+ */
+ this.$supers(${artifactId}.${component-class},'unbind_', arguments);
+ },
+
+ getZclass: function () {
+ return this._zclass != null ? this._zclass: "z-${component-name}";
+ }
+});
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/css/__component-name__.css.dsp
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/css/__component-name__.css.dsp (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/css/__component-name__.css.dsp 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,8 @@
+<%--
+ Here you could do any styling job you want , all CSS stuff.
+--%>
+<%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" %>
+
+.z-${component-name}{
+ color:black;
+}
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/mold/__component-name__.js
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/mold/__component-name__.js (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/mold/__component-name__.js 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,21 @@
+/**
+* Here's the mold file , a mold means a HTML struct that the widget really presented.
+* yep, we build html in Javascript , that make it more clear and powerful.
+*/
+function (out) {
+
+ //Here you call the "this" means the widget instance. (@see ${component-xlass}.js)
+
+ var zcls = this.getZclass(),
+ uuid = this.uuid;
+
+ //The this.domAttrs_() means it will prepare some dom attributes,
+ //like the pseudo code below
+ /*
+ class="${zcls} ${this.getSclass()}" id="${uuid}"
+ */
+ out.push('<span ', this.domAttrs_(), '>');
+ out.push(this._text);
+ out.push('</span>');
+
+}
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/zk.wpd
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/zk.wpd (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/main/resources/web/js/__artifactId__/zk.wpd 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ZK Widget Package Definition
+
+ ZK will load javascript by WPD , (i.e. zk.wpd , zul.inp.wpd ...etc )
+ that means all the widget definition in the package will be packed into single file in runtime ,
+ and be loaded when the component is accessed.
+
+ == Tip in advance ==
+ To prevent too many client Javascript requests for speeding up the loading,
+ sometimes you will consider to merge multiple packages in lang-addon.xml .
+ (@see lang-addon.xml)
+
+ We are not promising anything about the merging config ,
+ you have to check the order and dependency carefully when you merge it,
+ especially the dependency for "zul.lang" , it couldn't be merged with any package.
+ ====
+
+
+ Options:
+
+ * depends
+
+ If you are developing your own package ,
+ and you need to access a existing widget (ex.zul.db.Datebox) ,
+ which your widget inherit from or need to instance for ,
+
+ that means your package count on the package (ex. "zul.db") ,
+ then you have to specify the package as "depends".
+
+ i.e.
+ <package name="my.package.name" language="xul/html" depends="zul.db">
+ <widget name="MyWidget" />
+ </package>
+
+ You might depend multiple packages , use comma to separate them.
+ i.e. depends="zk.fmt,zul.inp"
+
+ When ZK try to load the package , it will load the dependency first.
+
+-->
+<package name="${artifactId}" language="xul/html" depends="zul" >
+
+ <!--
+
+ == Tip in advance ==
+ You could also specify a general javascript file here,
+ it's not always required to be a widget definition.
+
+ For example , if you try to wrap some jQuery plug-in as a Widget ,
+ you might need to load some plug-in source code before you writing your widget.
+
+ Just place JS files in the package folder , and write the definition
+ <script src="js-file-a.js" />
+ <script src="js-file-b.js" />
+ ====
+
+ -->
+
+ <widget name="${component-class}" />
+</package>
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/java/ctrl/DemoWindowComposer.java
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/java/ctrl/DemoWindowComposer.java (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/java/ctrl/DemoWindowComposer.java 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,22 @@
+package ctrl;
+
+import ${package}.${component-class};
+import org.zkoss.zk.ui.Component;
+import org.zkoss.zk.ui.event.ForwardEvent;
+import org.zkoss.zk.ui.event.MouseEvent;
+import org.zkoss.zk.ui.util.GenericForwardComposer;
+
+public class DemoWindowComposer extends GenericForwardComposer {
+
+ private ${component-class} myComp;
+
+ public void doAfterCompose(Component comp) throws Exception {
+ super.doAfterCompose(comp);
+ myComp.setText("Hello ZK Component!! Please click me.");
+ }
+
+ public void onClick$myComp (ForwardEvent event) {
+ MouseEvent mouseEvent = (MouseEvent) event.getOrigin();
+ alert("You listen onClick: " + mouseEvent.getTarget());
+ }
+}
\ No newline at end of file
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/META-INF/MANIFEST.MF 2011-09-15 04:33:13 UTC (rev 1116)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/WEB-INF/web.xml
===================================================================
--- trunk/zk-archetype/zk-archetype-component/src/main/resources/archetype-resources/src/test/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/zk-archetype/zk-archetype-component/src/main/resources/arche...
[truncated message content] |