Commit 35dfa5bb authored by Nicolas Dolet's avatar Nicolas Dolet

- Fix SNAPSHOT versions

- Use some maven properties
- New output layout for the debug
parent 02eb13fe
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<dependency> <dependency>
<groupId>org.ow2.frascati.intent</groupId> <groupId>org.ow2.frascati.intent</groupId>
<artifactId>frascati-debug</artifactId> <artifactId>frascati-debug</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<plugin> <plugin>
<groupId>org.ow2.frascati.factory</groupId> <groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-plugin</artifactId> <artifactId>frascati-factory-plugin</artifactId>
<version>0.5-SNAPSHOT</version> <version>0.5</version>
<executions> <executions>
<execution> <execution>
<id>generate-factory</id> <id>generate-factory</id>
......
...@@ -51,10 +51,13 @@ public class DebugIntentHandler ...@@ -51,10 +51,13 @@ public class DebugIntentHandler
Object ret; Object ret;
Component c = ((Interface) ijp.getComponentContext()).getFcItfOwner(); Component c = ((Interface) ijp.getComponentContext()).getFcItfOwner();
String componentName = Fractal.getNameController(c).getFcName(); String componentName = Fractal.getNameController(c).getFcName();
String methodName = ijp.getMethod().getDeclaringClass().getName() + "." + ijp.getMethod().getName(); String methodDesc = ijp.getMethod().toString();
System.out.println("[FRASCATI-DEBUG] Entering '" + methodName + "' in component '" + componentName + "'"); System.err.println("[FRASCATI-DEBUG] Entering in component '" + componentName + "'");
System.err.println("[FRASCATI-DEBUG] \t method: " + methodDesc);
ret = ijp.proceed(); ret = ijp.proceed();
System.out.println("[FRASCATI-DEBUG] Exiting '" + methodName + "' from component '" + componentName + "'"); System.err.println("[FRASCATI-DEBUG] Exiting component '" + componentName + "'");
System.err.println("[FRASCATI-DEBUG] \t method: " + methodDesc);
return ret; return ret;
} }
} }
...@@ -25,13 +25,14 @@ ...@@ -25,13 +25,14 @@
<groupId>org.ow2.frascati.factory.examples.transaction</groupId> <groupId>org.ow2.frascati.factory.examples.transaction</groupId>
<artifactId>transfer</artifactId> <artifactId>transfer</artifactId>
<version>0.2-SNAPSHOT</version> <version>0.2</version>
<name>Transactions Example: Transfer service</name> <name>Transactions Example: Transfer service</name>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
<frascati.version>0.5</frascati.version>
<example.main.composite>transfer</example.main.composite> <example.main.composite>transfer</example.main.composite>
<example.main.class>org.ow2.frascati.transaction.examples.transfer.Main</example.main.class> <example.main.class>org.ow2.frascati.transaction.examples.transfer.Main</example.main.class>
</properties> </properties>
...@@ -42,13 +43,13 @@ ...@@ -42,13 +43,13 @@
<dependency> <dependency>
<groupId>org.ow2.frascati.factory</groupId> <groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-af-runtime</artifactId> <artifactId>frascati-af-runtime</artifactId>
<version>0.5-SNAPSHOT</version> <version>${frascati.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.frascati.transaction</groupId> <groupId>org.ow2.frascati.transaction</groupId>
<artifactId>frascati-transaction</artifactId> <artifactId>frascati-transaction</artifactId>
<version>0.2-SNAPSHOT</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
...@@ -91,7 +92,7 @@ ...@@ -91,7 +92,7 @@
<plugin> <plugin>
<groupId>org.ow2.frascati.factory</groupId> <groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-factory-plugin</artifactId> <artifactId>frascati-factory-plugin</artifactId>
<version>0.5-SNAPSHOT</version> <version>${frascati.version}</version>
<executions> <executions>
<execution> <execution>
<id>generate-factory</id> <id>generate-factory</id>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<name>JBoss Maven Repository</name> <name>JBoss Maven Repository</name>
<url>http://repository.jboss.com/maven2/</url> <url>http://repository.jboss.com/maven2/</url>
</repository> </repository>
</repositories> </repositories>
<build> <build>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<dependency> <dependency>
<groupId>org.ow2.frascati.factory</groupId> <groupId>org.ow2.frascati.factory</groupId>
<artifactId>frascati-af-runtime</artifactId> <artifactId>frascati-af-runtime</artifactId>
<version>0.5-SNAPSHOT</version> <version>0.5</version>
</dependency> </dependency>
<dependency> <dependency>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment