Remove trailing whitespace. 61/8261/1
authorEd Warnicke <eaw@cisco.com>
Mon, 23 Jun 2014 21:33:58 +0000 (16:33 -0500)
committerEd Warnicke <eaw@cisco.com>
Mon, 23 Jun 2014 21:33:58 +0000 (16:33 -0500)
Change-Id: If3a2d3efa1311724ffaf7447679201685d8bce44
Signed-off-by: Ed Warnicke <eaw@cisco.com>
22 files changed:
main/archetypes/archetype-md-sal-app-simple/pom.xml
main/archetypes/archetype-md-sal-app-simple/src/main/resources/META-INF/maven/archetype-metadata.xml
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/consumer/src/main/java/consumer/ConsumerActivator.java
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/java/generate/CodeGenerator.java
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/java/generate/CodeGeneratorUtil.java
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/java/generate/Field.java
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/java/generate/ProviderField.java
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/consumer/consumerImpl.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/consumer/yang-gen-sal/abstractConsumerImpl.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/consumer/yang-gen-sal/config/consumerImplBuilder.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/consumer/yang-gen-sal/config/rpcRegistryBuilder.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/consumer/yang-gen-sal/yangModuleInfoImpl.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/provider/provider.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/view.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/generate/src/main/template/yang.vm
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/model/pom.xml
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/model/src/main/yang/yang.sample
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/pom.xml
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/web/pom.xml
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/web/src/main/java/org/opendaylight/controller/app/web/SampleAppController.java
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/web/src/main/resources/WEB-INF/md-sal-app-servlet.xml
main/archetypes/archetype-md-sal-app-simple/src/main/resources/archetype-resources/web/src/main/resources/WEB-INF/web.xml

index 12b06b20317de8a3efa55427423844697a1649da..92c14083c7d8df3158ebd29bde613882d03cf956 100644 (file)
@@ -2,7 +2,7 @@
 <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <modelVersion>4.0.0</modelVersion>
-  
+
   <groupId>org.opendaylight.toolkit</groupId>
   <artifactId>md-sal-app-simple</artifactId>
   <version>1.0-SNAPSHOT</version>
index ec880a322a13e0ac61ca312e521c52edfded4c52..9115d389759325f26e0b973b589357d120616b11 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" 
+<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
 name="md-sal-apps"
     xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-     
+
   <requiredProperties>
     <requiredProperty key="appName">
       <defaultValue>task</defaultValue>
index 89a25de1304c0d58a270b601268b8b7d6176d889..4a298b90d94fbb4f73cc046b436e419a6866dbd9 100644 (file)
@@ -26,19 +26,19 @@ import org.json.simple.parser.JSONParser;
  *
  */
 public class CodeGenerator {
-  
+
   private static String basePackage = "${package}";
-  
+
   /**
    * This method expects two arguments application name and fields for application,
    * which it will receive from command line, while generating the project.
    * If user does not specify those fields, a default value will be picked up.
-   * arg[1] should be a valid JSON, otherwise, ParseException will be thrown. 
-   * Second argument should be a valid string  
+   * arg[1] should be a valid JSON, otherwise, ParseException will be thrown.
+   * Second argument should be a valid string
    * @param args
    * @throws Exception
    */
-  public static void main(String[] args) throws Exception {  
+  public static void main(String[] args) throws Exception {
     //TODO : Do some preconditions check
     JSONParser parser = new JSONParser();
     Object obj = parser.parse(args[1]);
@@ -55,8 +55,8 @@ public class CodeGenerator {
     processWebViewTemplate(args[0], fieldKeys, ve);
     processInitialConfig(args[0], ve);
   }
-  
-  
+
+
   private static void processModelYangTemplate(String appName, Set fieldKeys, VelocityEngine ve, JSONObject jsonObject)
       throws Exception{
     /*  next, get the Template  */
@@ -86,7 +86,7 @@ public class CodeGenerator {
     CodeGeneratorUtil.writeFile(path, context, template);
   }
 
-  
+
   private static void processWebViewTemplate(String appName, Set fieldKeys, VelocityEngine ve)  throws Exception{
     /*  next, get the Template  */
     Template template = ve.getTemplate( "view.vm" );
index 0d7e560913860a5df9707f745016f917535363b4..679c246e7efdc225cdaa72cd98c783ba96501174 100644 (file)
@@ -20,7 +20,7 @@ import org.apache.velocity.VelocityContext;
  *
  */
 public class CodeGeneratorUtil {
-  
+
   public static void writeFile(String path, VelocityContext context, Template template) throws Exception {
     File file = new File(path);
     File parent = file.getParentFile();
@@ -36,7 +36,7 @@ public class CodeGeneratorUtil {
     template.merge( context, bw );
     bw.close();
   }
-  
+
   public static String capitalizeFirstLetter(String original){
     if(original.length() == 0)
         return original;
index 643edd849a9a57ccd3445a0e79aa21ec69bf2f51..f03d5900c81079dc7465f7599314ef4624a1977a 100644 (file)
@@ -15,22 +15,22 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * This is a auto generated class which calls provider service to create an entry in 
+ * This is a auto generated class which calls provider service to create an entry in
  * data store
  * @author harmansingh
  *
  */
 public class ${capitalApp}ConsumerImpl implements ${capitalApp}ConsumerService {
-  
+
   private static final Logger log = LoggerFactory.getLogger(${capitalApp}ConsumerImpl.class);
-  
+
   ${capitalApp}Service service;
   Random rand = new Random();
-  
+
   public ${capitalApp}ConsumerImpl(${capitalApp}Service service) {
     this.service = service;
   }
-  
+
   public void createEntry(Map<String, String> data) {
     if(data == null || data.isEmpty()) {
       log.debug("empty input data");
@@ -43,7 +43,7 @@ public class ${capitalApp}ConsumerImpl implements ${capitalApp}ConsumerService {
       fieldBuilder.setValue(data.get(key));
       fields.add(fieldBuilder.build());
     }
-    
+
     SaveEntryInputBuilder inputbuilder = new SaveEntryInputBuilder();
     inputbuilder.setEntryId(String.valueOf(rand.nextInt(1000000000)));
     inputbuilder.setEntryField(fields);
@@ -55,6 +55,6 @@ public class ${capitalApp}ConsumerImpl implements ${capitalApp}ConsumerService {
     } catch (InterruptedException | ExecutionException e) {
       e.printStackTrace();
     }
-  } 
+  }
 
 }
index e6e05ed8e3ebacdbbb45b1b39000c8c5ce08a906..06ff71b104adecec1867994cdf287cf6815e4700 100644 (file)
@@ -14,14 +14,14 @@ public class ${capitalApp}ConsumerImplBuilder {
     private final Map<Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${capitalApp}ConsumerImpl>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${capitalApp}ConsumerImpl>> augmentation = new HashMap<>();
 
     public ${capitalApp}ConsumerImplBuilder() {
-    } 
-    
+    }
+
 
 
     public RpcRegistry getRpcRegistry() {
         return _rpcRegistry;
     }
-    
+
     @SuppressWarnings("unchecked")
     public <E extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${capitalApp}ConsumerImpl>> E getAugmentation(Class<E> augmentationType) {
         if (augmentationType == null) {
@@ -31,11 +31,11 @@ public class ${capitalApp}ConsumerImplBuilder {
     }
 
     public ${capitalApp}ConsumerImplBuilder setRpcRegistry(RpcRegistry value) {
-    
+
         this._rpcRegistry = value;
         return this;
     }
-    
+
     public ${capitalApp}ConsumerImplBuilder addAugmentation(Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${capitalApp}ConsumerImpl>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${capitalApp}ConsumerImpl> augmentation) {
         this.augmentation.put(augmentationType, augmentation);
         return this;
@@ -74,7 +74,7 @@ public class ${capitalApp}ConsumerImplBuilder {
         public RpcRegistry getRpcRegistry() {
             return _rpcRegistry;
         }
-        
+
         @SuppressWarnings("unchecked")
         @Override
         public <E extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${capitalApp}ConsumerImpl>> E getAugmentation(Class<E> augmentationType) {
@@ -121,12 +121,12 @@ public class ${capitalApp}ConsumerImplBuilder {
             }
             return true;
         }
-        
+
         @Override
         public String toString() {
             StringBuilder builder = new StringBuilder("${capitalApp}ConsumerImpl [");
             boolean first = true;
-        
+
             if (_rpcRegistry != null) {
                 if (first) {
                     first = false;
index 5753d6ab557f1529e567ddc078ac758ff2b64318..ff341fc4825b13d02202e2834ee476795aaffeda 100644 (file)
@@ -15,8 +15,8 @@ public class RpcRegistryBuilder {
     private final Map<Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${lowerApp}.consumer.impl.RpcRegistry>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${lowerApp}.consumer.impl.RpcRegistry>> augmentation = new HashMap<>();
 
     public RpcRegistryBuilder() {
-    } 
-    
+    }
+
     public RpcRegistryBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.rev130405.ServiceRef arg) {
         this._name = arg.getName();
         this._type = arg.getType();
@@ -49,11 +49,11 @@ public class RpcRegistryBuilder {
     public Object getName() {
         return _name;
     }
-    
+
     public Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.rev130405.ServiceType> getType() {
         return _type;
     }
-    
+
     @SuppressWarnings("unchecked")
     public <E extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${lowerApp}.consumer.impl.RpcRegistry>> E getAugmentation(Class<E> augmentationType) {
         if (augmentationType == null) {
@@ -63,17 +63,17 @@ public class RpcRegistryBuilder {
     }
 
     public RpcRegistryBuilder setName(Object value) {
-    
+
         this._name = value;
         return this;
     }
-    
+
     public RpcRegistryBuilder setType(Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.rev130405.ServiceType> value) {
-    
+
         this._type = value;
         return this;
     }
-    
+
     public RpcRegistryBuilder addAugmentation(Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${lowerApp}.consumer.impl.RpcRegistry>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${lowerApp}.consumer.impl.RpcRegistry> augmentation) {
         this.augmentation.put(augmentationType, augmentation);
         return this;
@@ -114,12 +114,12 @@ public class RpcRegistryBuilder {
         public Object getName() {
             return _name;
         }
-        
+
         @Override
         public Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.rev130405.ServiceType> getType() {
             return _type;
         }
-        
+
         @SuppressWarnings("unchecked")
         @Override
         public <E extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.${lowerApp}.consumer.impl.rev140523.modules.module.configuration.${lowerApp}.consumer.impl.RpcRegistry>> E getAugmentation(Class<E> augmentationType) {
@@ -174,12 +174,12 @@ public class RpcRegistryBuilder {
             }
             return true;
         }
-        
+
         @Override
         public String toString() {
             StringBuilder builder = new StringBuilder("RpcRegistry [");
             boolean first = true;
-        
+
             if (_name != null) {
                 if (first) {
                     first = false;
index 2bf6f1fb02961a69b1016fa3fc7e9155ff0f5c91..74f8a97353c17fb7e786f8c7bb8f15d177d03e15 100644 (file)
@@ -13,7 +13,7 @@ public final class $YangModuleInfoImpl implements YangModuleInfo {
     private final String namespace = "urn:opendaylight:params:xml:ns:yang:controller:config:${app}-consumer:impl";
     private final String revision = "2014-05-23";
     private final String resourcePath = "/META-INF/yang/${app}-consumer-impl.yang";
-    
+
     private final Set<YangModuleInfo> importedModules;
 
     public static YangModuleInfo getInstance() {
@@ -35,22 +35,22 @@ public final class $YangModuleInfoImpl implements YangModuleInfo {
         // Resource leak, but there is nothing we can do
         }
     }
-    
+
     @Override
     public String getName() {
         return name;
     }
-    
+
     @Override
     public String getRevision() {
         return revision;
     }
-    
+
     @Override
     public String getNamespace() {
         return namespace;
     }
-    
+
     @Override
     public InputStream getModuleSourceStream() throws IOException {
         InputStream stream = $YangModuleInfoImpl.class.getResourceAsStream(resourcePath);
@@ -59,12 +59,12 @@ public final class $YangModuleInfoImpl implements YangModuleInfo {
         }
         return stream;
     }
-    
+
     @Override
     public Set<YangModuleInfo> getImportedModules() {
         return importedModules;
     }
-    
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder(this.getClass().getCanonicalName());
index 7d62e75a8b3a04344fb68bccf67644d46d770977..b9dc30bfb20922d7bb36e1625a9ff1591b660242 100644 (file)
@@ -30,15 +30,15 @@ import org.slf4j.LoggerFactory;
  * @author harmansingh
  *
  */
+
 public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseable {
 
     private static final Logger log = LoggerFactory.getLogger(${capitalApp}Provider.class);
-    
+
     private DataBrokerService dataService;
-    
+
     private final ExecutorService executor;
-    
+
     public DataBrokerService getDataService() {
       return dataService;
     }
@@ -50,15 +50,15 @@ public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseabl
     public ${capitalApp}Provider() {
       executor = Executors.newFixedThreadPool(1);
     }
-    
+
      /**
      * This is an example to show how yang based RPC can be used to perform an operation.
-     * Here this is saving data in data store. This code also gives insight into how we can 
+     * Here this is saving data in data store. This code also gives insight into how we can
      * insert data into data store
      * @param input
      * @return
      */
-     
+
     @Override
     public Future<RpcResult<Void>> saveEntry(SaveEntryInput input) {
       log.debug("Saving the entry");
@@ -71,7 +71,7 @@ public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseabl
       EntryBuilder entryBuilder = new EntryBuilder();
       entryBuilder.setKey(new EntryKey(new EntryId(input.getEntryId())));
       List<EntryField> entryFields = input.getEntryField();
-      
+
       for(EntryField field : entryFields) {
         String key = field.getKey();
         String value = field.getValue();
@@ -80,7 +80,7 @@ public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseabl
         }
         switch(key) {
           #foreach( $field in $fields )
-          case "$field.name" : 
+          case "$field.name" :
             entryBuilder.${field.method}(value);
             break;
           #end
@@ -94,7 +94,7 @@ public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseabl
         public void close() throws Exception {
             executor.shutdown();
         }
-    
+
     private class SaveEntry implements Callable<RpcResult<Void>> {
 
       Entry entry;
@@ -105,7 +105,7 @@ public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseabl
 
       @Override
       public RpcResult<Void> call() throws InterruptedException {
-        // Each entry will be identifiable by a unique key, we have to create that identifier 
+        // Each entry will be identifiable by a unique key, we have to create that identifier
         InstanceIdentifier.InstanceIdentifierBuilder<Entry> entryIdBuilder =
             InstanceIdentifier.<${capitalApp}>builder(${capitalApp}.class)
             .child(Entry.class, entry.getKey());
@@ -117,5 +117,5 @@ public class ${capitalApp}Provider implements ${capitalApp}Service, AutoCloseabl
           return Rpcs.<Void> getRpcResult(true, null, Collections.<RpcError> emptySet());
       }
    }
-    
+
 }
\ No newline at end of file
index aaf49756205f9e1f26d596d929385e29575b50d9..0a9367623129ab2e065ee8980a30e1bd652e84e5 100644 (file)
@@ -13,7 +13,7 @@
 <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
     <!-- Latest compiled and minified JavaScript -->
-    <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>  
+    <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
   <div class="container">
@@ -33,7 +33,7 @@
           #end
         </tr>
       </thead>
-      <tbody> 
+      <tbody>
       </tbody>
     </table>
     </div>
     </div>
   </div>
   </div>
-  
+
 
 <script type="text/javascript">
 jQuery(document).ready(function(){
   jQuery.ajax({
       url: window.location.origin +"/restconf/operational/${app}:${app}",
       dataType: "json",
-      success: function(data) { 
-        jQuery.each(data.${app}.entry, 
-          function(){ 
+      success: function(data) {
+        jQuery.each(data.${app}.entry,
+          function(){
             var rowEntry = "<tr><td>" +
             this['entry-id']+"</td>"
             #foreach( $field in $fields )
               + "<td>" + this.${field} + "</td>"
             #end
-            
+
             +"</tr>";
             console.log(rowEntry);
             jQuery(".table tbody").append(rowEntry);
@@ -89,10 +89,10 @@ jQuery(document).ready(function(){
 jQuery("form").on( "submit", function( event ) {
       event.preventDefault();
       var entryId = Math.random()*100000000000000000;
-      var formData = '{"input":{"entryField":[' 
+      var formData = '{"input":{"entryField":['
       #foreach( $field in $fields )
        + '{"key":"${field}", "value":"'+ jQuery("input[name='${field}']").val()+ '"}'
-        #if($velocityCount != $fields.size()) 
+        #if($velocityCount != $fields.size())
           +','
         #end
       #end
@@ -101,20 +101,20 @@ jQuery("form").on( "submit", function( event ) {
       jQuery.ajax({
           url: window.location.origin +"/restconf/operations/${app}:saveEntry",
           type: "POST",
-          headers: { 
+          headers: {
                 'Accept': 'application/json',
-                'Content-Type': 'application/json' 
+                'Content-Type': 'application/json'
           },
           data: formData,
           dataType: "json",
-          success: function(data) { 
+          success: function(data) {
               location.reload(true);
           },
           error : function(){ console.log("Error");}
       });
-      
+
     });
 </script>
-    
+
   </body>
 </html>
\ No newline at end of file
index 552457128a6d95e5707050a2a09e41a74382b163..bc77492ff20d927efc929d9ae1349f8e52632352 100644 (file)
@@ -7,7 +7,7 @@ module $app {
     prefix $app;
 
     import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
-    
+
     organization "Netconf Central";
 
     contact
@@ -20,12 +20,12 @@ module $app {
       description
         "MD-SAL sample app";
     }
-    
+
     typedef entry-id {
       type inet:uri;
       description "An identifier for app entry.";
     }
-    
+
     container $app {
       description
         "Top-level container for all application database objects.";
@@ -42,7 +42,7 @@ module $app {
         #end
       }
     }
-    
+
     rpc saveEntry {
      description " Method to add a new entry into datastore.";
      input {
@@ -51,18 +51,18 @@ module $app {
            type string;
            description "name of the field";
          }
-         
+
          leaf value {
            type string;
            description "value of the field";
          }
        }
-       
+
        leaf entryId {
          type string;
          description "entry Identifier";
        }
      }
     }
-    
+
 }
\ No newline at end of file
index 8e4fe70f72975d05ea3c44c3c75d3afffc85c594..c2408e300db6a8fd47301d2ffe2a88242ff1c753 100644 (file)
@@ -62,7 +62,7 @@
         </plugins>
         <pluginManagement>
             <plugins>
-                <!--This plugin's configuration is used to store Eclipse 
+                <!--This plugin's configuration is used to store Eclipse
                     m2e settings only. It has no influence on the Maven build itself. -->
                 <plugin>
                     <groupId>org.eclipse.m2e</groupId>
index 99de1b37c9cdb16893578cf96f9d0c240b1d15a4..84fe47deebb04f2a7fe3242c842c1d7ed6829c3b 100644 (file)
@@ -7,7 +7,7 @@ module task {
     prefix task;
 
     import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
-    
+
     organization "Netconf Central";
 
     contact
@@ -20,12 +20,12 @@ module task {
       description
         "MD-SAL sample app";
     }
-    
+
     typedef entry-id {
       type inet:uri;
       description "An identifier for app entry.";
     }
-    
+
     container task {
       description
         "Top-level container for all application database objects.";
@@ -43,7 +43,7 @@ module task {
         }
               }
     }
-    
+
     rpc saveEntry {
      description " Method to add a new entry into datastore.";
      input {
@@ -52,18 +52,18 @@ module task {
            type string;
            description "name of the field";
          }
-         
+
          leaf value {
            type string;
            description "value of the field";
          }
        }
-       
+
        leaf entryId {
          type string;
          description "entry Identifier";
        }
      }
     }
-    
+
 }
\ No newline at end of file
index 8cb2a3082474a7706ed37b1f65444e7edc1266d3..407d70eae3d5e83cd55647027a68360890ec7eee 100644 (file)
@@ -5,7 +5,7 @@
   <groupId>${groupId}</groupId>
   <artifactId>${artifactId}</artifactId>
   <version>${version}</version>
-  
+
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
     <config.version>0.2.5-SNAPSHOT</config.version>
   </properties>
-  
+
   <scm>
       <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
       <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
       <tag>HEAD</tag>
   </scm>
-  
+
     <pluginRepositories>
     <!-- OpenDayLight Repo Mirror -->
     <pluginRepository>
@@ -88,7 +88,7 @@
       </releases>
     </repository>
   </repositories>
-  
+
   <distributionManagement>
     <!-- OpenDayLight Released artifact -->
     <repository>
   </distributionManagement>
 
   <build>
-  
+
     <pluginManagement>
       <plugins>
         <plugin>
index efb4e82fcd4410f09c80a7ca8857e38a2e8a5169..43c62b760bdbe9f2ed033e567a51dd90413ff858 100644 (file)
             <artifactId>spring-core</artifactId>
             <version>${spring.version}</version>
         </dependency>
+
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
             <version>${spring.version}</version>
         </dependency>
+
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-webmvc</artifactId>
index ef7c255a857c3981447440e309ffe16c5fbaf53c..226ad4af01b3dbf708287f1212c1c296521efbd9 100644 (file)
@@ -6,7 +6,7 @@
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                       http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
                       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
+
     <context:component-scan base-package="org.opendaylight.controller.app.web" />
 
     <mvc:resources mapping="/js/**" location="/js/" />
@@ -14,7 +14,7 @@
   <mvc:resources mapping="/img/**" location="/img/" />
 
     <mvc:annotation-driven />
-    
+
     <bean
         class="org.springframework.web.servlet.view.InternalResourceViewResolver">
         <property name="prefix">
@@ -24,5 +24,5 @@
             <value>.jsp</value>
         </property>
     </bean>
+
 </beans>
\ No newline at end of file
index 93365b725bc09de4d043e09463916bca515de984..13d8fd03ac4818f6e0a44306225e4dcf3d0bf673 100644 (file)
@@ -2,7 +2,7 @@
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">
   <display-name>MD-SAL Application</display-name>
-  
+
   <servlet>
         <servlet-name>md-sal-app</servlet-name>
         <servlet-class>
         </servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
+
     <servlet-mapping>
         <servlet-name>md-sal-app</servlet-name>
         <url-pattern>/</url-pattern>
     </servlet-mapping>
-    
+
+
 </web-app>