continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r232750 - in /maven/continuum/trunk/continuum-web/src/main/resources/forms: continuumProject.xml shellProject.xml
Date Mon, 15 Aug 2005 04:07:35 GMT
Author: brett
Date: Sun Aug 14 21:07:29 2005
New Revision: 232750

URL: http://svn.apache.org/viewcvs?rev=232750&view=rev
Log:
repair shell project addition

Modified:
    maven/continuum/trunk/continuum-web/src/main/resources/forms/continuumProject.xml
    maven/continuum/trunk/continuum-web/src/main/resources/forms/shellProject.xml

Modified: maven/continuum/trunk/continuum-web/src/main/resources/forms/continuumProject.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/forms/continuumProject.xml?rev=232750&r1=232749&r2=232750&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/forms/continuumProject.xml (original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/forms/continuumProject.xml Sun
Aug 14 21:07:29 2005
@@ -65,6 +65,14 @@
     </element>
   </elements>
 
+  <update>
+    <title-key>project.title.update</title-key>
+    <action>updateEntity</action>
+    <view>Summary.vm</view>
+    <view-on-failure>Edit.vm</view-on-failure>
+    <expression>updateProject(#entity)</expression>
+  </update>
+
   <!-- View -->
   <view>
     <title-key>project.title</title-key>

Modified: maven/continuum/trunk/continuum-web/src/main/resources/forms/shellProject.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/forms/shellProject.xml?rev=232750&r1=232749&r2=232750&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/forms/shellProject.xml (original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/forms/shellProject.xml Sun Aug
14 21:07:29 2005
@@ -1,43 +1,36 @@
 <form>
   <extend>continuumProject</extend>
   <id>shellProject</id>
-  <!--
-    <target-class>org.apache.maven.continuum.project.ShellProject</target-class>
-    <lookup-expression>getShellProject(#id)</lookup-expression>
-    <elements>
-      <element>
-        <id>project.executable</id>
-        <validators>
-          <validator>
-            <id>required</id>
-            <error-message-key>project.executable.error</error-message-key>
-          </validator>
-          <validator>
-            <id>safe-path</id>
-            <error-message-key>project.executable.safepath.error</error-message-key>
-          </validator>
-        </validators>
-        <expression>executable</expression>
-        <type>text</type>
-      </element>
-    </elements>
+  <!-- TODO: why not inherited? -->
+  <target-class>org.apache.maven.continuum.project.ContinuumProject</target-class>
+  <lookup-expression>getProject(#id)</lookup-expression>
+  <elements>
+    <!-- TODO: remove
+        <element>
+          <id>project.executable</id>
+          <validators>
+            <validator>
+              <id>required</id>
+              <error-message-key>project.executable.error</error-message-key>
+            </validator>
+            <validator>
+              <id>safe-path</id>
+              <error-message-key>project.executable.safepath.error</error-message-key>
+            </validator>
+          </validators>
+          <expression>executable</expression>
+          <type>text</type>
+        </element>
+    -->
+  </elements>
 
-    <add>
-      <title-key>project.title.add</title-key>
-      <action>addEntity</action>
-      <view>Summary.vm</view>
-      <view-on-failure>Add.vm</view-on-failure>
-      <fid-on-failure>shellProject</fid-on-failure>
-      <expression>addShellProject(#entity)</expression>
-    </add>
+  <add>
+    <title-key>project.title.add</title-key>
+    <action>addEntity</action>
+    <view>Summary.vm</view>
+    <view-on-failure>Add.vm</view-on-failure>
+    <fid-on-failure>shellProject</fid-on-failure>
+    <expression>addProject(#entity,"shell")</expression>
+  </add>
 
-    <update>
-      <title-key>project.title.update</title-key>
-      <action>updateEntity</action>
-      <view>Summary.vm</view>
-      <view-on-failure>Edit.vm</view-on-failure>
-      <expression>updateShellProject(#entity)</expression>
-    </update>
-
-  -->
 </form>



Mime
View raw message