Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4268

White space, -, _ in class and interface name shoud be deleted and next starting character should be capitalised.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5

      Description

      Hi,

      Pls check this issue and confirm,

      Defect : White space, -, _ in class and interface name shoud be deleted and next starting character should be capitalised.

      P.S : Currently for space it is throwing error and for underscore its just generating straight away without deleting and capitalizing.

      Yang :
      module test {
      yang-version 1;
      namespace "test:level1:newlevel";
      prefix test;

      organization "huawei";
      contact "bharat.saraswal@huawei.com";
      description "test";

      revision 2015-02-12;

      leaf leaf1 ro

      { type "string"; }

      leaf leaf2_to { type "string"; }

      }

      Logs :
      root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$ mvn clean install
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building test 1.5.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ test —
      [INFO] Deleting /opt/onos-master/onos/utils/test/target
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ test —
      [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/opt/onos-master/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US
      [INFO]
      [INFO] — yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ test —
      [INFO] Error in file: /opt/onos-master/onos/utils/test/src/main/yang/test.yang at line: 12 at position: 15
      extraneous input 'ro' expecting '{'
      [INFO] Source directory added to compilation root: /opt/onos-master/onos/utils/test/src/main/yangmodel/
      [INFO]
      [INFO] — maven-resources-plugin:2.7:resources (default-resources) @ test —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /opt/onos-master/onos/utils/test/src/main/resources
      [INFO] Copying 3 resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ test —
      [INFO] Compiling 3 source files to /opt/onos-master/onos/utils/test/target/classes
      [INFO]
      [INFO] — maven-resources-plugin:2.7:testResources (default-testResources) @ test —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /opt/onos-master/onos/utils/test/src/test/resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ test —
      [INFO] No sources to compile
      [INFO]
      [INFO] — maven-surefire-plugin:2.19.1:test (default-test) @ test —
      [INFO] No tests to run.
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:report (default-report) @ test —
      [INFO] Skipping JaCoCo execution due to missing execution data file:/opt/onos-master/onos/utils/test/target/jacoco.exec
      [INFO]
      [INFO] — maven-bundle-plugin:3.0.1:bundle (default-bundle) @ test —
      [INFO]
      [INFO] — maven-jar-plugin:2.6:test-jar (default) @ test —
      [INFO] Skipping packaging of the test-jar
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.17:check (validate-checkstyle) @ test —
      [INFO]
      [INFO] — maven-install-plugin:2.5.2:install (default-install) @ test —
      [INFO] Installing /opt/onos-master/onos/utils/test/target/test-1.5.0-SNAPSHOT.jar to /home/root1/.m2/repository/org/onosproject/test/1.5.0-SNAPSHOT/test-1.5.0-SNAPSHOT.jar
      [INFO] Installing /opt/onos-master/onos/utils/test/pom.xml to /home/root1/.m2/repository/org/onosproject/test/1.5.0-SNAPSHOT/test-1.5.0-SNAPSHOT.pom
      [INFO]
      [INFO] — maven-bundle-plugin:3.0.1:install (default-install) @ test —
      [INFO] Installing org/onosproject/test/1.5.0-SNAPSHOT/test-1.5.0-SNAPSHOT.jar
      [INFO] Writing OBR metadata
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.914 s
      [INFO] Finished at: 2016-03-09T11:54:01+05:30
      [INFO] Final Memory: 30M/354M
      [INFO] ------------------------------------------------------------------------
      root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            janani Janani B
            Reporter:
            huawei-adarsh Adarsh m
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: