Author: craigmcc Date: Wed Mar 1 17:52:37 2006 New Revision: 382238 URL: http://svn.apache.org/viewcvs?rev=382238&view=rev Log: More infrastructure to create the component import library (complib) for Java Studio Creator 2. (This is all optional if you don't have Creator.) Before the complib is actually useful, the next step will be to create the BeanInfo and DesignInfo classes that provide the appropriate design time behavior.
Added: struts/shale/trunk/core-library/src/conf/COMPLIB.MF struts/shale/trunk/core-library/src/conf/complib-bundle.properties (with props) struts/shale/trunk/core-library/src/conf/complib-config.xml (with props) Modified: struts/shale/trunk/core-library/build.xml Modified: struts/shale/trunk/core-library/build.xml URL: http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/build.xml?rev=382238&r1=382237&r2=382238&view=diff ============================================================================== --- struts/shale/trunk/core-library/build.xml (original) +++ struts/shale/trunk/core-library/build.xml Wed Mar 1 17:52:37 2006 @@ -89,6 +89,7 @@ <path id="creator2.classpath"> <pathelement location="${jsf-api.jar}"/> <pathelement location="${build.home}/classes"/> + <pathelement location="${build.home}/creator2"/> <pathelement location="${lib.dir}/creator2/com-sun-rave-designtime.jar"/> <pathelement location="${lib.dir}/creator2/jsfcl.jar"/> <pathelement location="${lib.dir}/creator2/jsfcl-dt.jar"/> @@ -340,6 +341,16 @@ </target> + <target name="library-creator2" depends="creator2" if="creator2.present" + description="Package Creator2 design time library"> + + <jar jarfile="${build.home}/lib/shale-designtime.jar" + basedir="${build.home}/creator2" + manifest="${build.home}/conf/MANIFEST.MF-core"/> + + </target> + + <target name="library-remoting" depends="compile" description="Package Remoting support library"> <mkdir dir="${build.home}/shale-remoting"/> @@ -388,7 +399,7 @@ </target> - <target name="library" depends="library-core, library-remoting, library-spring, library-tiles" + <target name="library" depends="library-core, library-remoting, library-spring, library-tiles, library-creator2" description="Package all libraries"/> @@ -419,7 +430,37 @@ <!-- ==================== Create Binary Distribution ==================== --> - <target name="dist" depends="docs" + <target name="complib" depends="docs" if="creator2.present" + description="Create Creator2 component import library"> + + <!-- Create zip files containing sources and javadocs --> + <zip zipfile="${build.home}/lib/shale-doc.zip" + basedir="${dist.home}/docs/api"/> + <zip zipfile="${build.home}/lib/shale-src.zip" + basedir="src/java" + excludes="**/.svn/**"/> + + <!-- Construct the component import archive --> + <mkdir dir="${build.home}/complib"/> + <copy todir="${build.home}/complib"> + <fileset dir="${build.home}/lib" + includes="shale-core.jar shale-designtime.jar shale-remoting.jar shale-doc.zip shale-src.zip"/> + </copy> + <mkdir dir="${build.home}/complib/META-INF"/> + <copy todir="${build.home}/complib/META-INF" + file="src/conf/complib-config.xml"/> + <copy todir="${build.home}/complib/META-INF" + file="src/conf/complib-bundle.properties"/> + + <mkdir dir="${dist.home}/lib"/> + <jar jarfile="${dist.home}/lib/shale.complib" + basedir="${build.home}/complib" + manifest="src/conf/COMPLIB.MF"/> + + </target> + + + <target name="dist" depends="docs,complib" description="Create binary distribution"> <mkdir dir="${dist.home}"/> Added: struts/shale/trunk/core-library/src/conf/COMPLIB.MF URL: http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/src/conf/COMPLIB.MF?rev=382238&view=auto ============================================================================== --- struts/shale/trunk/core-library/src/conf/COMPLIB.MF (added) +++ struts/shale/trunk/core-library/src/conf/COMPLIB.MF Wed Mar 1 17:52:37 2006 @@ -0,0 +1,2 @@ +X-Rave-API-Compatibility-Version: 2.0 +X-Rave-Complib-Configuration: META-INF/complib-config.xml Added: struts/shale/trunk/core-library/src/conf/complib-bundle.properties URL: http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/src/conf/complib-bundle.properties?rev=382238&view=auto ============================================================================== --- struts/shale/trunk/core-library/src/conf/complib-bundle.properties (added) +++ struts/shale/trunk/core-library/src/conf/complib-bundle.properties Wed Mar 1 17:52:37 2006 @@ -0,0 +1,21 @@ +# Copyright 2004-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. +# +# $Id$ + +# Localizable resources for component import library +titleKey=Shale Framework Components +folder1Key=Shale Framework Components +folder2Key=Shale Framework Converters +folder3Key=Shale Framework Validators Propchange: struts/shale/trunk/core-library/src/conf/complib-bundle.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/shale/trunk/core-library/src/conf/complib-bundle.properties ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/shale/trunk/core-library/src/conf/complib-config.xml URL: http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/src/conf/complib-config.xml?rev=382238&view=auto ============================================================================== --- struts/shale/trunk/core-library/src/conf/complib-config.xml (added) +++ struts/shale/trunk/core-library/src/conf/complib-config.xml Wed Mar 1 17:52:37 2006 @@ -0,0 +1,60 @@ +<!-- + + 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. + + $Id$ + +--> + +<complibConfiguration version="1.0" + resourceBundleBaseName="META-INF.complib-bundle"> + + <identifier> + <uri>http://struts.apache.org/shale/core</uri> + <version>0.1</version> + </identifier> + <titleKey>titleKey</titleKey> + + <runtimePath> + <pathElement>shale-core.jar</pathElement> + <pathElement>shale-remoting.jar</pathElement> + </runtimePath> + <designTimePath + prependRuntimePath="true"> + <pathElement>shale-designtime.jar</pathElement> + </designTimePath> + <javadocPath> + <pathElement>shale-doc.zip</pathElement> + </javadocPath> + <sourcePath> + <pathElement>shale-src.zip</pathElement> + </sourcePath> + + <initialPalette> + <folder key="folder1Key"> + <item className="org.apache.shale.component.Subview"/> + <item className="org.apache.shale.component.Token"/> + <item className="org.apache.shale.component.ValidatorScript"/> + </folder> +<!-- + <folder key="folder2Key"> + </folder> +--> + <folder key="folder3Key"> + <item className="org.apache.shale.validator.CommonsValidator"/> + </folder> + </initialPalette> + +</complibConfiguration> Propchange: struts/shale/trunk/core-library/src/conf/complib-config.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/shale/trunk/core-library/src/conf/complib-config.xml ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]