Package org.jvnet.sorcerer.util

Examples of org.jvnet.sorcerer.util.JsonWriter.propertyUnquoted()


    public void generateProjectJs(final Map<String, String> cus, PrintWriter w) throws IOException {
        try {
            final JsonWriter jw = new JsonWriter(w);
            jw.startObject();
            jw.property("name", "Project"); // TODO
            jw.propertyUnquoted("linker", "linker.self");
            jw.property("sources", new JsonWriter.Writable() {
                public void write(JsonWriter w) {
                    for (Map.Entry<String, String> entry : cus.entrySet()) {
                        jw.property(entry.getKey(), entry.getValue());
                    }
View Full Code Here


            JsonWriter jw = new JsonWriter(w);
            jw.startArray();
            {// write self
                jw.startObject();
                jw.property("name","Project"); // TODO
                jw.propertyUnquoted("linker","linker.self");
                jw.property("packages",packageNames);
                jw.endObject();
            }
            // write dependencies
            for (Dependency dep : pss.getDependencies())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.