2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -20,7 +20,7 @@ under the License.
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
|
||||
<simple-method method-name="exampleGenericPermission" short-description="Main permission logic">
|
||||
<set field="mainAction" from-field="parameters.mainAction"/>
|
||||
<if-empty field="mainAction">
|
||||
|
||||
@@ -18,12 +18,12 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
<!-- ExampleStatus methods -->
|
||||
<simple-method method-name="createExampleStatus" short-description="create a ExampleItem">
|
||||
<now-timestamp field="nowTimestamp"/>
|
||||
|
||||
|
||||
<!-- find the most recent status record and set the statusEndDate -->
|
||||
<entity-and entity-name="ExampleStatus" list="oldExampleStatusList">
|
||||
<field-map field-name="exampleId" from-field="parameters.exampleId"/>
|
||||
@@ -39,9 +39,9 @@ under the License.
|
||||
<set-pk-fields map="parameters" value-field="newEntity"/>
|
||||
<set-nonpk-fields map="parameters" value-field="newEntity"/>
|
||||
<set field="newEntity.statusDate" from-field="nowTimestamp"/>
|
||||
<create-value value-field="newEntity"/>
|
||||
</simple-method>
|
||||
|
||||
<create-value value-field="newEntity"/>
|
||||
</simple-method>
|
||||
|
||||
<!-- Example ServiceTest Service -->
|
||||
<simple-method method-name="testCreateExampleService" short-description="test the create example service" login-required="false">
|
||||
<set field="createExampleMap.exampleTypeId" value="CONTRIVED"/>
|
||||
@@ -57,7 +57,7 @@ under the License.
|
||||
</call-service>
|
||||
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
|
||||
|
||||
<assert>
|
||||
<not><if-empty field="example"/></not>
|
||||
<if-compare-field field="example.exampleTypeId" to-field="createExampleMap.exampleTypeId" operator="equals"/>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# to you 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
|
||||
|
||||
Reference in New Issue
Block a user