StrutsFacesBuild

HomePage | RecentChanges | Preferences

Targetting JDK 1.3

First, set up to build it:

$ diff -u build.properties.sample build.properties
--- build.properties.sample     2006-01-21 20:35:47.015625000 -0700
+++ build.properties    2006-03-27 18:59:36.609375000 -0700
@@ -40,23 +40,23 @@

 # The absolute or relative pathname to your installation of the JavaServer Faces
 # refererence implementation (version 1.1 or later).
-jsf.home=/usr/local/jsf-1_1
+jsf.home=c:/java/jsf-1_1_01

 # The absolute or relative pathname to your installation of the JSP Standard
 # Tag Library.  If you are running against a Servlet 2.3 / JSP 1.2 container
 # (such as Tomcat 4.1.x), use version 1.0.x of JSTL.  For a Servlet 2.4 /
 # JSP 2.0 container (such as Tomcat 5.0.x or any JWSDP release), use
 # version 1.1.x of JSTL.
-jstl.home=/usr/local/standard-1.0.3
+jstl.home=c:/java/jakarta-taglibs-standard-1.0.6

 # The absolute or relative pathname to your installation of Tomcat 4.1.x,
 # Tomcat 5.0.x, or the Java Web Services Developer Pack (version 1.4 or later)
 # server.
-server.home=/usr/local/jakarta-tomcat-4.1.29
+server.home=c:/java/jakarta-tomcat-4.1.31

 # The absolute or relative pathname of the Struts 1.1 (or later)
 # Distribution Directory
-struts.home=/usr/local/jakarta-struts-1.1
+struts.home=c:/java/struts-1.2.8-bin


 # ---------------------- DEPENDENCY LIBRARY PATHS -----------------------------

@@ -142,7 +142,7 @@

 # The absolute or relative pathname to your installation of HtmlUnit 1.2.3
 # or later.  This code can be acquired at SourceForge.
-htmlunit.home=/usr/local/htmlunit-1.5
+htmlunit.home=c:/java/htmlunit-1.6

 # The type of JSF state saving that should be used when the system integration
 # test web application is depoyed ("client" or "server")

Then, the patch:

$ svn diff
Index: default.properties
===================================================================
--- default.properties  (revision 0)
+++ default.properties  (revision 0)
@@ -0,0 +1,25 @@
+# default.properties
+# -----------------------
+#
+# =============================================================================
=
+# 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.
+# =============================================================================
=
+
+# Java platform version which source code must conform to
+platform.source=1.3
+
+# Java platform version which generated class files must conform to
+platform.target=1.3
+

Property changes on: default.properties
___________________________________________________________________
Name: svn:executable
   + *

Index: core-library/build.xml
===================================================================
--- core-library/build.xml      (revision 389351)
+++ core-library/build.xml      (working copy)
@@ -29,6 +29,7 @@
   <property file="build.properties"/>
   <property file="../build.properties"/>
   <property file="../../build.properties"/>
+  <property file="../default.properties"/>
   <property file="${user.home}/build.properties"/>


@@ -186,7 +187,9 @@
                destdir="${build.home}/classes"
                  debug="${compile.debug}"
            deprecation="${compile.deprecation}"
-              optimize="${compile.optimize}">
+              optimize="${compile.optimize}"
+                source="${platform.source}"
+                target="${platform.target}">
       <classpath refid="compile.classpath" />
     </javac>

August 11, 2005 - Attempt to compile Struts Faces against Struts 1.1

$ maven clean jar
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

WARNING: Plugin 'maven-xdoc-plugin' is already loaded from maven-xdoc-plugin-1.9
.1; attempting to load maven-xdoc-plugin-1.8
build:start:

clean:clean:
xdoc:clean:

    [delete] Deleting directory E:\svn\struts\current\faces\target

clean:

java:prepare-filesystem:
    [mkdir] Created dir: E:\svn\struts\current\faces\target\classes

java:compile:
    [echo] Compiling to e:\svn\struts\current\faces/target/classes
    [echo]
==========================================================

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==========================================================

    [javac] Compiling 36 source files to E:\svn\struts\current\faces\target\clas
ses
E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces\taglib
\JavascriptValidatorTag.java:47: package org.apache.struts.taglib does not exist

import org.apache.struts.taglib.TagUtils;
                                ^
E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces\taglib
\JavascriptValidatorTag.java:49: cannot resolve symbol
symbol  : class ModuleUtils
location: package util
import org.apache.struts.util.ModuleUtils;
                              ^
E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces\taglib
\JavascriptValidatorTag.java:273: cannot resolve symbol
symbol  : variable ModuleUtils
location: class org.apache.struts.faces.taglib.JavascriptValidatorTag
        ModuleConfig config = ModuleUtils.getInstance().getModuleConfig(request)
;
                              ^
E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces\taglib
\JavascriptValidatorTag.java:279: cannot resolve symbol
symbol  : variable TagUtils
location: class org.apache.struts.faces.taglib.JavascriptValidatorTag
        Locale locale = TagUtils.getInstance().getUserLocale(pageContext, null);

                        ^
E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces\taglib
\JavascriptValidatorTag.java:689: cannot resolve symbol
symbol  : variable TagUtils
location: class org.apache.struts.faces.taglib.JavascriptValidatorTag
        return TagUtils.getInstance().isXhtml(this.pageContext);
               ^
Note: E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces taglib\JavascriptValidatorTag.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
5 errors

BUILD FAILED
File...... C:\Documents and Settings\wendy\.maven\cache\maven-java-plugin-1.5\pl
ugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 5 seconds
Finished at: Thu Aug 11 18:36:40 MST 2005


wendy@imbrium-1 /cygdrive/e/svn/struts/current/faces
$

August 8, 2005... Struts Faces won't build again

wendy@imbrium-1 /cygdrive/e/svn/struts/current/faces
$ maven site > ../../faces-site.log
E:\svn\struts\current\faces\core-library\src\java\org\apache\struts\faces\applic
ation\ActionListenerImpl.java:155: cannot resolve symbol
symbol  : method selectModule (javax.servlet.http.HttpServletRequest,javax.servl
et.ServletContext)
location: class org.apache.struts.util.RequestUtils
            RequestUtils.selectModule(request, servletContext);
                        ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
1 error

BUILD FAILED
File...... C:\Documents and Settings\wendy\.maven\cache\maven-java-plugin-1.5\pl
ugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Compile failed; see the compiler error output for details.

wendy@imbrium-1 /cygdrive/e/svn/struts/current/faces
$

June 27, 2005... Struts Faces won't build:

wendy@imbrium-1 /cygdrive/e/svn/struts/faces
$ maven dist
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

dist:build-setup:
    [delete] Deleting directory E:\svn\struts\faces\target\distributions
    [mkdir] Created dir: E:\svn\struts\faces\target\distributions

xdoc:init:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to e:\svn\struts\faces/target/classes
    [echo]
==========================================================

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==========================================================

    [javac] Compiling 36 source files to E:\svn\struts\faces\target\classes
E:\svn\struts\faces\core-library\src\java\org\apache\struts\faces\taglib\Javascr
iptValidatorTag.java:47: package org.apache.struts.taglib does not exist
import org.apache.struts.taglib.TagUtils;
                                ^
E:\svn\struts\faces\core-library\src\java\org\apache\struts\faces\taglib\Javascr
iptValidatorTag.java:49: cannot resolve symbol
symbol  : class ModuleUtils
location: package util
import org.apache.struts.util.ModuleUtils;
                              ^
E:\svn\struts\faces\core-library\src\java\org\apache\struts\faces\taglib\Javascr
iptValidatorTag.java:273: cannot resolve symbol
symbol  : variable ModuleUtils
location: class org.apache.struts.faces.taglib.JavascriptValidatorTag
        ModuleConfig config = ModuleUtils.getInstance().getModuleConfig(request)
;
                              ^
E:\svn\struts\faces\core-library\src\java\org\apache\struts\faces\taglib\Javascr
iptValidatorTag.java:279: cannot resolve symbol
symbol  : variable TagUtils
location: class org.apache.struts.faces.taglib.JavascriptValidatorTag
        Locale locale = TagUtils.getInstance().getUserLocale(pageContext, null);

                        ^
E:\svn\struts\faces\core-library\src\java\org\apache\struts\faces\taglib\Javascr
iptValidatorTag.java:689: cannot resolve symbol
symbol  : variable TagUtils
location: class org.apache.struts.faces.taglib.JavascriptValidatorTag
        return TagUtils.getInstance().isXhtml(this.pageContext);
               ^
Note: E:\svn\struts\faces\core-library\src\java\org\apache\struts\faces\taglib\J
avascriptValidatorTag.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
5 errors

BUILD FAILED
File...... C:\Documents and Settings\wendy\.maven\cache\maven-java-plugin-1.5\pl
ugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 5 seconds
Finished at: Mon Jun 27 18:47:22 MST 2005


wendy@imbrium-1 /cygdrive/e/svn/struts/faces
$


Fix: Add dependencies for core and taglib 1.3.0-dev

Question: Should the dependency on struts 1.1 be removed?

Index: faces/project.xml
===================================================================
--- faces/project.xml   (revision 202107)
+++ faces/project.xml   (working copy)
@@ -83,8 +83,30 @@
          </properties>
       <url>http://struts.apache.org/</url>
        </dependency>
+
+    <dependency>
+         <groupId>struts</groupId>
+         <artifactId>struts-core</artifactId>
+         <version>1.3.0-dev</version>
+         <properties>
+               <war.bundle>true</war.bundle>
+        <cactus.bundle>true</cactus.bundle>
+         </properties>
+      <url>http://struts.apache.org/</url>
+       </dependency>

        <dependency>
+         <groupId>struts</groupId>
+         <artifactId>struts-taglib</artifactId>
+         <version>1.3.0-dev</version>
+         <properties>
+               <war.bundle>true</war.bundle>
+        <cactus.bundle>true</cactus.bundle>
+         </properties>
+      <url>http://struts.apache.org/</url>
+       </dependency>
+
+       <dependency>
          <groupId>myfaces</groupId>
          <artifactId>myfaces-jsf-api</artifactId>
          <version>1.0.8-beta</version>


JM applied this patch and removed the dependency on Struts 1.1


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited March 27, 2006 6:04 pm by WendySmoak (diff)
Search: