Customer Portal

Running in the context of an Eclipse Plugin

Comments 2

  • Avatar
    mzatopek
    0
    Comment actions Permalink
    First of all, are you sure, the graph xml file and all related files are deployed in unzipped form?

    Please, try to pass a parameter called PROJECT_DIR to the clover engine. This parameter and its value is usually used to resolve all relative path in the graph xml definition.

    I'm not sure how do you run your graph, for instance you use runGraph class to run a graph, pass a "-P:PROJECT_DIR=/path/to/root/folder/of/project" to the command line.

    With best regards, Martin
  • Avatar
    pierrefrancis
    0
    Comment actions Permalink
    Thank for your answer.

    In fact, I had to use PROJECT_DIR properties at a place I didn't figured at first. as in the java example, I was creating TransformationGraphXMLReaderWriter using null. Now I'm doing this and Eclipse is happy running my graph inside my plugin.

    A great thank you for the hour your answer will save me ;).

    Pierre

    Properties props = new Properties();
    props.put("PROJECT_DIR", Activator.getDefault().getPluginPath());
    TransformationGraphXMLReaderWriter graphReader = new TransformationGraphXMLReaderWriter(props);
    TransformationGraph graph = new TransformationGraph();

    try {
    FileInputStream fis = new FileInputStream(Activator.getDefault().getPluginPath() + GRAPH_NAME);
    graph = graphReader.read(fis);

Please sign in to leave a comment.