You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2011/01/11 16:04:37 UTC
svn commit: r1057682 - in /pivot/branches/3.x: build.properties build.xml
core/src/org/apache/pivot/bxml/BXMLSerializer.java
ui/src/org/apache/pivot/ui/TextInput.java
ui/src/org/apache/pivot/ui/TextInputContentListener.java
Author: gbrown
Date: Tue Jan 11 15:04:36 2011
New Revision: 1057682
URL: http://svn.apache.org/viewvc?rev=1057682&view=rev
Log:
Add starter build.xml and build.properties; trim whitespace.
Added:
pivot/branches/3.x/build.properties
pivot/branches/3.x/build.xml
Modified:
pivot/branches/3.x/core/src/org/apache/pivot/bxml/BXMLSerializer.java
pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java
pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java
Added: pivot/branches/3.x/build.properties
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/build.properties?rev=1057682&view=auto
==============================================================================
--- pivot/branches/3.x/build.properties (added)
+++ pivot/branches/3.x/build.properties Tue Jan 11 15:04:36 2011
@@ -0,0 +1,15 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file 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 KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+version=3.0
Added: pivot/branches/3.x/build.xml
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/build.xml?rev=1057682&view=auto
==============================================================================
--- pivot/branches/3.x/build.xml (added)
+++ pivot/branches/3.x/build.xml Tue Jan 11 15:04:36 2011
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file 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 KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<project name="pivot">
+ <!-- Remove trailing white space in all source files -->
+ <target name="trim-whitespace">
+ <fileset id="trimfiles" dir=".">
+ <include name="BUILD"/>
+ <include name="LICENSE"/>
+ <include name="NOTICE"/>
+ <include name="README"/>
+ <include name="RELEASE-NOTES"/>
+ <include name="**/*.bxml"/>
+ <include name="**/*.html"/>
+ <include name="**/*.java"/>
+ <include name="**/*.json"/>
+ <include name="**/*.jsp"/>
+ <include name="**/*.properties"/>
+ <include name="**/*.txt"/>
+ <include name="**/*.xml"/>
+ </fileset>
+ <replaceregexp match="[\t]" replace=" " flags="gm" byline="true">
+ <fileset refid="trimfiles"/>
+ </replaceregexp>
+ <replaceregexp match="[\t ]+$" replace="" flags="gm" byline="true">
+ <fileset refid="trimfiles"/>
+ </replaceregexp>
+ </target>
+</project>
Modified: pivot/branches/3.x/core/src/org/apache/pivot/bxml/BXMLSerializer.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/core/src/org/apache/pivot/bxml/BXMLSerializer.java?rev=1057682&r1=1057681&r2=1057682&view=diff
==============================================================================
--- pivot/branches/3.x/core/src/org/apache/pivot/bxml/BXMLSerializer.java (original)
+++ pivot/branches/3.x/core/src/org/apache/pivot/bxml/BXMLSerializer.java Tue Jan 11 15:04:36 2011
@@ -594,7 +594,7 @@ public class BXMLSerializer implements S
// If the element has an ID, add the value to the namespace
if (element.id != null) {
namespace.put(element.id, element.value);
-
+
// If the type has an ID property, use it
Class<?> type = element.value.getClass();
IDProperty idProperty = type.getAnnotation(IDProperty.class);
Modified: pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java?rev=1057682&r1=1057681&r2=1057682&view=diff
==============================================================================
--- pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java (original)
+++ pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java Tue Jan 11 15:04:36 2011
@@ -1,5 +1,5 @@
package org.apache.pivot.ui;
public interface TextInput {
- // TODO
+ // TODO
}
Modified: pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java?rev=1057682&r1=1057681&r2=1057682&view=diff
==============================================================================
--- pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java (original)
+++ pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java Tue Jan 11 15:04:36 2011
@@ -64,7 +64,7 @@ public interface TextInputContentListene
*
* @param start
* The starting index from which the text will be removed.
- *
+ *
* @param length
* The number of characters that will be removed.
*/