Package net.sourceforge.temply.base.project

Examples of net.sourceforge.temply.base.project.Project


    private Repository _repo;
    private VarExpressionFinder _finder;
    @Before
    public void setUp() throws Exception {
        URL url = getClass().getResource("/simple");
        Project project = new Project(new File(url.getFile()));
        _repo = project.getRepository();
        _finder = new VarExpressionFinder(_repo);
        // _repo = new Repository(new File("src/test/resources/appserver"));
    }
View Full Code Here


    private Repository _repo;

    @Before
    public void setUp() throws Exception {
        URL url = getClass().getResource("/simple");
        Project project = new Project(new File(url.getFile()));
        _repo = project.getRepository();
    }
View Full Code Here

public class GraphTest {

    @Test
    public void test() throws Exception{
        URL url = GraphTest.class.getResource("/simple");
        Project project = new Project(new File(url.getFile()));

        DirectedGraph<Rule, DefaultEdge> graph = getGraph(project);
       
        Set<DefaultEdge> edges = graph.incomingEdgesOf(project.getRepository().getRule("Oracle"));
        for (DefaultEdge edge : edges) {
            Rule source = graph.getEdgeSource(edge);
            System.out.print(source + " = ");
//            System.out.println(graph.inDegreeOf(source));
//            System.out.println(countPointedTo(graph, source));
View Full Code Here

       
    }
   
    public static void main(String[] args) throws Exception {
        URL url = GraphTest.class.getResource("/simple");
        Project project = new Project(new File(url.getFile()));
       
        JGraphModelAdapter<Rule, DefaultEdge> adapter = new JGraphModelAdapter<Rule, DefaultEdge>(
                getDependanciesGraph(project)
               
//                getGraph(project)
View Full Code Here

    @Test
    public void test() throws Exception {
        URL url = getClass().getResource("/simple");
        // Project project = new Project(new
        // File("src/test/resources/appserver"));
        Project project = new Project(new File(url.getFile()));
        assertEquals(1, project.getTemplates().size());
        assertEquals("tomcat.xml", project.getTemplates().iterator().next().getDestinations().iterator().next()
                .getFile(project).getName());
    }
View Full Code Here

    private Project _project;

    @Before
    public void setUp() throws Exception {
        URL url = getClass().getResource("/simple");
        _project = new Project(new File(url.getFile()));
    }
View Full Code Here

                System.exit(1);
            }

            TemplyUI ui = TemplyUIFactory.getInstance().getUI(type);
           
            Project project = new Project(projectFileDir);
            Template template = (Template) ui.combo("Template", project.getTemplates());
            if (template == null) {
                return;
            }
            Destination destination = (Destination) ui.combo("Destination", template.getDestinations());
            if (destination == null) {
                return;
            }
            String script = (String) ui.combo("Script", project.getScripts());
            if (script == null) {
                return;
            }
            project.run(script, ui, template, destination);
            System.exit(0);
        } catch (Throwable th) {
            if (type.equals("swing")) {
                JOptionPane pane = new JOptionPane(th.getMessage());
                JDialog dialog = pane.createDialog(null, "Error");
View Full Code Here

TOP

Related Classes of net.sourceforge.temply.base.project.Project

Copyright © 2018 www.massapicom. 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.