tail-f-systems / JNC

JNC (Java NETCONF Client) is the name of a Java library for communicating with NETCONF agents, and a plugin for pyang (http://code.google.com/p/pyang/) to generate Java classes from YANG models, to be used by the JNC library.
Other
77 stars 87 forks source link

Interfaces-1 #6

Closed alrighttheresham closed 12 years ago

alrighttheresham commented 12 years ago

Hi Emil, seems to be a problem with the pyang example in 1-Interfaces, I havent tried the other examples so cant say if same issues exists.

[damianoneill 1-interfaces]$ export PYANG_PLUGINPATH=../..; ant Buildfile: /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/build.xml

clean: [delete] Deleting directory /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/src

generate: [mkdir] Created dir: /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/src

compile: [mkdir] Created dir: /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/build/classes [javac] Compiling 27 source files to /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/build/classes [javac] /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/src/ianaIfType/IanaIfType.java:9: expected [javac] package .ianaIfType; [javac] ^ [javac] /Users/damianoneill/Downloads/tail-f-systems-JNC-47b597a/examples/1-interfaces/src/ianaIfType/IanaIfType.java:11: '.' expected [javac] import YangException;

Separately for the Maven build I've been looking at this and have noticed that --jnc-output is creating the valid directory but the package name is missing the first character. I assume that you have logic in jnc.py that is parsing command opts using character parsing?

Emil-Tail-f commented 12 years ago

Fixed the build file so the classes are generated to src/gen instead of src/ and moved the Client.java file to src/app. The ability to generate to src directly will be addressed as a seperate issue.