[jbehave-dev] 2nd CfP RuleML-2007, Springer Confirmed, Submission Deadline Extended to July 20th

2007-07-11 Thread Adrian Paschke




   The International RuleML Symposium
  on Rule Interchange and Applications (RuleML-2007)

October 25-26, 2007, Orlando, Florida

http://2007.ruleml.org


Dear Colleagues,

Due to numerous requests about conflicting deadlines, and with Springer
as confirmed publisher, online submissions to RuleML-2007 will be
allowed until July 20 (hard deadline):

Abstract submission before July 10, 2007
Paper submission due   July 20, 2007
Notification of acceptance August 6, 2007
Final submissions due  August 23, 2007

The International RuleML Symposium on Rule Interchange and Applications
(RuleML-2007) will take place, October 25-26, 2007, in Orlando, Florida
http://2007.ruleml.org, co-located with The 10th International Business
Rules Forum . RuleML-2007 is devoted
to practical distributed rule technologies and rule-based applications
which need language standards for rules operating in the context of,
e.g., the Semantic Web, Web 2.0/3.0, Intelligent Multi-Agent Systems,
Event-Driven Architectures, Service-Oriented Computing Applications and
Rule-based Enterprise Application Systems. A RuleML-2007 Challenge with
prizes will be organized to demonstrate tools, use cases, and applications.


   Call for Papers:  http://2007.ruleml.org/cfp.pdf


Highlights:

- Accepted papers will be published as Springer LNCS proceedings
- 2 Keynote speakers; Confirmed Keynote by Jürgen Angele (Ontoprise):

  "Rule-based Development Support in the Automotive Industry"

- In cooperation with BRF, ECCAI, AAAI, ACM, IEEE Computer, BPM Forum
- Selection of revised papers will be resubmitted to a special journal issue
- Best Paper Award
- Prestigious prizes will be awarded to the first two best applications
of the Challenge
- Panel by world-class scientists and practitioners, featuring topics on
event and rule-based computing and industry success stories

Updates:

1) Modified Challenge Requirements:

"Submissions to the RuleML Challenge 2007 consist of a demo paper of 3-5
pages, describing the demo show case, and a link to more information
about the demo/show case, e.g. a project site, an online demonstration,
a presentation about the demonstration, or a download site for the
demonstration.

The show case should demonstrate the use of rules of various kinds in
interesting and practically relevant ways, preferably (but not
necessarily) embedded into a Web-based or distributed environment."

More information regarding submissions can be found in the RuleML-2007
web site:

http://2007.ruleml.org/index-Dateien/Page787.htm

2) Enhanced Topics:

- Rules in Web 2.0 and Web 3.0
- Rules in Semantic Web Technologies
- Rules in Web Intelligence Research

We invite submissions of full, short and demo papers related (but not
limited) to one or more of the topics listed at:

http://2007.ruleml.org/index-Dateien/Page431.htm

3)  All papers and demos will  be carefully peer-reviewed by 3 PC
members of the Program Committee:

http://2007.ruleml.org/index-Dateien/Page508.htm


Sincerely,

General Chair

Said Tabet, Inferware Corp.
stabet AT ruleml.org

Program Co-Chairs

Adrian Paschke, Technical University Munich, Germany
paschke AT in.tum.de
Yevgen Biletskiy, University of New Brunswick, Canada
biletski AT unb.ca

Challenge Co-Chairs

Alexander Kozlenkov, Betfair Ltd., London, UK
alex.kozlenkov AT betfair.com
Ralph Hodgson, TopQuadrant, Inc., Mountain View, USA
rhodgson AT topquadrant.com

Panel Chair

John Hall, Model Systems, UK
john.hall AT modelsys.com

Publicity Chair

Suzette Stoutenburg, MITRE Corporation, USA
suzette AT mitre.org


-
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Created: (JBEHAVE-95) Add generate-story-code goal

2007-07-11 Thread Mauro Talevi (JIRA)
Add  generate-story-code goal 
--

 Key: JBEHAVE-95
 URL: http://jira.codehaus.org/browse/JBEHAVE-95
 Project: JBehave
  Issue Type: New Feature
  Components: Maven Plugin
Affects Versions: 1.0.1
Reporter: Mauro Talevi
 Fix For: 1.1


Add mojo to run generate-story-code goal from a given story using a 
configurable CodeGenerator implementaion.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] International RuleML Symposium on Rule Interchange and Applications Launched

2007-07-11 Thread Adrian Paschke

International RuleML Symposium on Rule Interchange and Applications Launched

RuleML-2007 is a new international meeting place for users, system 
providers, practitioners, developers, researchers and representatives of 
rule/event standardization efforts and open source rule communities to 
discuss the applicability and commercialization of rule technologies for 
enterprises and public organizations including event-handling rules. 
Co-located with the 10th International Business Rules Forum 
(http://www.businessrulesforum.com), the International Symposium on Rule 
Interchange and Applications (RuleML-2007) is the first symposium 
devoted to work on practical distributed rule/event technologies and 
rule/event-based applications which need language standards for rules 
operating in the context of, e.g., the Semantic Web, Intelligent 
Multi-Agent Systems, Event-Driven Architectures and Service-Oriented 
Computing.


Participants will be offered an exciting venue to exchange new ideas, 
practical developments and their experience on issues related to the 
engineering, management, integration, interoperation and interchange of 
rules and events in enterprise application systems and open distributed 
environments such as the Web. RuleML-2007 will also enable delegates to 
better understand rules and event processing technologies and their 
potential, and how to exploit these technologies in their organizations.


The symposium will be held in Orlando, Florida, US, October 25/26, 2007 
and will feature scientific research, industry, and demo papers and 
presentations, case study and practical experience presentations, show 
cases/demos presented in a RuleML-2007 Challenge and Invited Talks.


Symposium general chair Said Tabet, Inferware Corp., said "I am very 
pleased to announce the launch of this symposium. After a series of 
successful RuleML workshops and conferences, this is a new kind of event 
where the Web Logic community joins the established, practically 
oriented Forum of the Business Rules community to help cross-fertilizing 
between Web and Business Logic technology. Given the increasing maturity 
of rules and complex event processing technology, the RuleML symposium 
is an exciting venue to exchange new ideas, practical developments and 
your experience on issues related to the engineering, deployment, 
management, integration, interoperation and interchange of rules, and to 
discuss the commercial benefits that rules and event processing 
technology will deliver."


To share your ideas, results, and experience and learn more about rules 
Technology, RuleML-2007 invites all of you, including:


- IT Services, Rules and Event Processing system providers
- Representatives of, and participants in, rule standardization efforts
- Members of open source rules communities
- CTOs and Strategists of technology firms
-  Information Architects and Strategic Technology Planners
- CIOs and Information Technology Managers
- Venture Capitalists and Investors
- CEOs of software startups
- Product Managers from software and hardware companies
- Data Analysts from major public and private organizations
- Academics and Researchers
- Software Developers
- Press and Analysts
- Technology Consultants


For further details please see the Symposium website 
http://2007.ruleml.org/.

For more information please contact: [EMAIL PROTECTED]



-
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email



[jbehave-scm] [756] trunk/core/pom.xml: Updated core dependencies.

2007-07-11 Thread mauro
Title:  [756] trunk/core/pom.xml: Updated core dependencies.







Revision 756
Author mauro
Date 2007-07-11 17:13:20 -0500 (Wed, 11 Jul 2007)


Log Message
Updated core dependencies.

Modified Paths

trunk/core/pom.xml




Diff

Modified: trunk/core/pom.xml (755 => 756)

--- trunk/core/pom.xml	2007-07-11 22:10:48 UTC (rev 755)
+++ trunk/core/pom.xml	2007-07-11 22:13:20 UTC (rev 756)
@@ -47,6 +47,12 @@
   3.8.2
   provided
 
+
+  velocity
+  velocity-dep
+  1.4
+  provided
+
   
 
   










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-scm] [755] trunk/core/src/behaviour/org/jbehave/core/story: JBEHAVE-94: Added velocity-based code generator.

2007-07-11 Thread mauro
Title:  [755] trunk/core/src/behaviour/org/jbehave/core/story: JBEHAVE-94:  Added velocity-based code generator.







Revision 755
Author mauro
Date 2007-07-11 17:10:48 -0500 (Wed, 11 Jul 2007)


Log Message
JBEHAVE-94:  Added velocity-based code generator.

Modified Paths

trunk/core/src/behaviour/org/jbehave/core/story/AllBehaviours.java


Added Paths

trunk/core/src/behaviour/org/jbehave/core/story/codegen/velocity/
trunk/core/src/behaviour/org/jbehave/core/story/codegen/velocity/VelocityCodeGeneratorBehaviour.java
trunk/core/src/java/org/jbehave/core/story/codegen/velocity/
trunk/core/src/java/org/jbehave/core/story/codegen/velocity/VelocityCodeGenerator.java
trunk/core/src/java/org/jbehave/core/story/codegen/velocity/templates/
trunk/core/src/java/org/jbehave/core/story/codegen/velocity/templates/event.template
trunk/core/src/java/org/jbehave/core/story/codegen/velocity/templates/given.template
trunk/core/src/java/org/jbehave/core/story/codegen/velocity/templates/outcome.template




Diff

Modified: trunk/core/src/behaviour/org/jbehave/core/story/AllBehaviours.java (754 => 755)

--- trunk/core/src/behaviour/org/jbehave/core/story/AllBehaviours.java	2007-07-11 20:07:29 UTC (rev 754)
+++ trunk/core/src/behaviour/org/jbehave/core/story/AllBehaviours.java	2007-07-11 22:10:48 UTC (rev 755)
@@ -9,6 +9,7 @@
 
 import org.jbehave.core.behaviour.Behaviours;
 import org.jbehave.core.story.codegen.parser.TextStoryParserBehaviour;
+import org.jbehave.core.story.codegen.velocity.VelocityCodeGeneratorBehaviour;
 import org.jbehave.core.story.domain.AbstractStepBehaviour;
 import org.jbehave.core.story.domain.GivenScenarioBehaviour;
 import org.jbehave.core.story.domain.GivenStepBehaviour;
@@ -41,6 +42,7 @@
 AbstractStepBehaviour.class,
 PlainTextScenarioListenerBehaviour.class,
 PlainTextRendererBehaviour.class,
+VelocityCodeGeneratorBehaviour.class
 };
 }
 }


Added: trunk/core/src/behaviour/org/jbehave/core/story/codegen/velocity/VelocityCodeGeneratorBehaviour.java (0 => 755)

--- trunk/core/src/behaviour/org/jbehave/core/story/codegen/velocity/VelocityCodeGeneratorBehaviour.java	(rev 0)
+++ trunk/core/src/behaviour/org/jbehave/core/story/codegen/velocity/VelocityCodeGeneratorBehaviour.java	2007-07-11 22:10:48 UTC (rev 755)
@@ -0,0 +1,60 @@
+package org.jbehave.core.story.codegen.velocity;
+
+import java.io.File;
+
+import org.jbehave.core.mock.UsingMatchers;
+import org.jbehave.core.story.codegen.domain.ScenarioDetails;
+import org.jbehave.core.story.codegen.domain.StoryDetails;
+
+/**
+ * 
+ * @author Mauro Talevi
+ */
+public class VelocityCodeGeneratorBehaviour extends UsingMatchers {
+
+public void shouldGenerateCodeForStoryWithFullScenario() throws Exception {
+// given
+StoryDetails storyDetails = new StoryDetails("Joe drinks vodka", "", "", "");
+ScenarioDetails scenario1 = new ScenarioDetails();
+scenario1.name = "Happy path";
+scenario1.context.givens.add("a bar downtown");
+scenario1.context.givens.add("a thirsty Joe");
+scenario1.event.name = "Joe asks for a Smirnov";
+scenario1.outcome.outcomes.add("bartender serves Joe");
+scenario1.outcome.outcomes.add("Joe is happy");
+storyDetails.addScenario(scenario1);
+ScenarioDetails scenario2 = new ScenarioDetails();
+scenario2.name = "Unhappy path";
+scenario2.context.givens.add("a pub uptown");
+scenario2.context.givens.add("an equally thirsty Joe");
+scenario2.event.name = "Joe asks for an Absolut";
+scenario2.outcome.outcomes.add("bartender tells Joe it is sold out");
+scenario2.outcome.outcomes.add("Joe is unhappy");
+storyDetails.addScenario(scenario2);
+
+// when
+String generatedSourceDir = "delete_me/generated-src";
+VelocityCodeGenerator generator = new VelocityCodeGenerator(generatedSourceDir,
+"generated.stories");
+generator.generateStory(storyDetails);
+
+// then
+String[] generatedPaths = new String[]{
+   "events/JoeAsksForASmirnov.java",  
+   "events/JoeAsksForAnAbsolut.java",  
+   "givens/ABarDowntown.java",  
+   "givens/APubUptown.java",  
+   "givens/AThirstyJoe.java",  
+   "givens/AnEquallyThirstyJoe.java",  
+   "outcomes/BartenderServesJoe.java",  
+   "outcomes/BartenderTellsJoeItIsSoldOut.java",  
+   "outcomes/JoeIsHappy.java",  
+   "outcomes/JoeIsUnhappy.java"
+};
+
+for ( int i = 0; i < generatedPaths.length; i++ ){
+ensureThat(new File(generatedSourceDir+File.separator+generatedPaths[i]).exists() );   
+}
+}
+
+}


Added: trunk/core/src/java/org/jbehave/core/story/codegen/velocity/VelocityCodeGenerator.java (0 => 755)

--- trunk/core/src/java/org/jbehave/core/story/codege

[jbehave-dev] [jira] Created: (JBEHAVE-94) Velocity code generator for story

2007-07-11 Thread Mauro Talevi (JIRA)
Velocity code generator for story 
--

 Key: JBEHAVE-94
 URL: http://jira.codehaus.org/browse/JBEHAVE-94
 Project: JBehave
  Issue Type: New Feature
  Components: Core
Affects Versions: 1.0.1
Reporter: Mauro Talevi
Assignee: Mauro Talevi
 Fix For: 1.1


A velocity-based implementation of CodeGenerator which generates 
events/givens/outcomes classes for a given story.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] Time for a 1.1-beta-1 release?

2007-07-11 Thread Mauro Talevi

Folks,

quite a bit of work has been done post-1.0.1.  I'd like to propose a 1.1-beta-1 release to allow a 
wider user base to try out new features.


Thoughts?

Cheers


-
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Updated: (JBEHAVE-93) Add dependencies to core POM

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi updated JBEHAVE-93:


Component/s: Maven Plugin

> Add dependencies to core POM
> 
>
> Key: JBEHAVE-93
> URL: http://jira.codehaus.org/browse/JBEHAVE-93
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Affects Versions: 1.0.1
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
>Priority: Minor
> Fix For: 1.1
>
>
> Declare dependencies in core POM.  These will all be declared as provided as 
> none are mandatory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Closed: (JBEHAVE-93) Add dependencies to core POM

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi closed JBEHAVE-93.
---

Resolution: Fixed

Done

> Add dependencies to core POM
> 
>
> Key: JBEHAVE-93
> URL: http://jira.codehaus.org/browse/JBEHAVE-93
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Affects Versions: 1.0.1
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
>Priority: Minor
> Fix For: 1.1
>
>
> Declare dependencies in core POM.  These will all be declared as provided as 
> none are mandatory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-scm] [754] trunk: Removed antlr jar.

2007-07-11 Thread mauro
Title:  [754] trunk: Removed antlr jar.







Revision 754
Author mauro
Date 2007-07-11 15:07:29 -0500 (Wed, 11 Jul 2007)


Log Message
Removed antlr jar.

Modified Paths

trunk/.classpath


Removed Paths

trunk/lib/extensions/antlr-2.7.6.jar




Diff

Modified: trunk/.classpath (753 => 754)

--- trunk/.classpath	2007-07-11 20:06:28 UTC (rev 753)
+++ trunk/.classpath	2007-07-11 20:07:29 UTC (rev 754)
@@ -24,7 +24,6 @@
 	
 	
 	
-	
 	
 	
 	


Deleted: trunk/lib/extensions/antlr-2.7.6.jar

(Binary files differ)








To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-scm] [753] trunk/core/pom.xml: JBEHAVE-93: Added dependencies to core POM.

2007-07-11 Thread mauro
Title:  [753] trunk/core/pom.xml: JBEHAVE-93:  Added dependencies to core POM.







Revision 753
Author mauro
Date 2007-07-11 15:06:28 -0500 (Wed, 11 Jul 2007)


Log Message
JBEHAVE-93:  Added dependencies to core POM.

Modified Paths

trunk/core/pom.xml




Diff

Modified: trunk/core/pom.xml (752 => 753)

--- trunk/core/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
+++ trunk/core/pom.xml	2007-07-11 20:06:28 UTC (rev 753)
@@ -1,79 +1,116 @@
-
-	4.0.0
-	
-		org.jbehave
-		jbehave-parent
-1.1-SNAPSHOT
-	
-	jbehave
-	jar
-	jBehave Core
+
+  4.0.0
+  
+org.jbehave
+jbehave-parent
+1.1-SNAPSHOT
+  
+  jbehave
+  jar
+  jBehave Core
 
-
+  
+
+  ant
+  ant
+  1.6.5
+  provided
+  
+
+  jmock
+  jmock
+  1.1.0
+  provided
+
+
+  jmock
+  jmock-cglib
+  1.1.0
+  provided
+
+
+  cglib
+  cglib-full
+  2.0
+  provided
+
+
+  proxytoys
+  proxytoys
+  0.2.1
+  provided
+
+
+  junit
+  junit
+  3.8.2
+  provided
+
+  
+
+  
+
+  
+org.apache.maven.plugins
+maven-antrun-plugin
+1.1
+
+  
+generate-resources
+
+  run
+
+
+  
+
+
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+  released
+  
 
   
-org.apache.maven.plugins
-maven-antrun-plugin
-1.1
-
-
-generate-resources
-
-run
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  
-
-
-
-released
-
-
-  
-org.apache.maven.plugins
-maven-antrun-plugin
-1.1
-
-  
-generate-resources
-
-  run
-
-
-  
-
-
-
-
-
-
-  
-
-  
-
-  
-
-
-
-
+org.apache.maven.plugins
+maven-antrun-plugin
+1.1
+
+  
+generate-resources
+
+  run
+
+
+  
+
+
+  
+  
+
+
+  
+
+  
+
+  
+
+  
+
+  
 










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Created: (JBEHAVE-93) Add dependencies to core POM

2007-07-11 Thread Mauro Talevi (JIRA)
Add dependencies to core POM


 Key: JBEHAVE-93
 URL: http://jira.codehaus.org/browse/JBEHAVE-93
 Project: JBehave
  Issue Type: Improvement
Affects Versions: 1.0.1
Reporter: Mauro Talevi
Priority: Minor
 Fix For: 1.1


Declare dependencies in core POM.  These will all be declared as provided as 
none are mandatory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Assigned: (JBEHAVE-93) Add dependencies to core POM

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi reassigned JBEHAVE-93:
---

Assignee: Mauro Talevi

> Add dependencies to core POM
> 
>
> Key: JBEHAVE-93
> URL: http://jira.codehaus.org/browse/JBEHAVE-93
> Project: JBehave
>  Issue Type: Improvement
>Affects Versions: 1.0.1
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
>Priority: Minor
> Fix For: 1.1
>
>
> Declare dependencies in core POM.  These will all be declared as provided as 
> none are mandatory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Closed: (JBEHAVE-91) Allow multiple stories to be run

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi closed JBEHAVE-91.
---

Resolution: Fixed

Two modes are now supported:

1. single story path -

  org/jbehave/it/stories/it.story 
  org.jbehave.it.stories


2. multiple story paths - 


  org/jbehave/it/stories
  
 it*.story
  
  
 it1.story
  
  org.jbehave.it.stories   
 


where the includes/excludes filters follow the usual Ant/Maven conventions.

Note that in both modes the *.story resources are expected to be found in the 
classpath.




> Allow multiple stories to be run
> 
>
> Key: JBEHAVE-91
> URL: http://jira.codehaus.org/browse/JBEHAVE-91
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
> Fix For: 1.1
>
>
> Currently, only one story path can be specified.
> Allow multiple story paths to be specified as relative to a story base dir - 
> with includes/excludes patterns.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-scm] [752] trunk/plugins/maven: JBEHAVE-91: Added configuration for multiple stories with includes/excludes filters.

2007-07-11 Thread mauro
Title:  [752] trunk/plugins/maven: JBEHAVE-91: Added configuration for multiple stories with includes/excludes filters.







Revision 752
Author mauro
Date 2007-07-11 14:47:46 -0500 (Wed, 11 Jul 2007)


Log Message
JBEHAVE-91: Added configuration for multiple stories with includes/excludes filters.

Modified Paths

trunk/plugins/maven/pom.xml
trunk/plugins/maven/src/it/pom.xml
trunk/plugins/maven/src/it/test1/pom.xml
trunk/plugins/maven/src/it/test2/pom.xml
trunk/plugins/maven/src/it/test3/pom.xml
trunk/plugins/maven/src/it/test4/pom.xml
trunk/plugins/maven/src/it/test5/pom.xml
trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/BehaviourRunnerMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java


Added Paths

trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/another.story
trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/it2.story
trunk/plugins/maven/src/it/test6/
trunk/plugins/maven/src/it/test6/pom.xml




Diff

Modified: trunk/plugins/maven/pom.xml (751 => 752)

--- trunk/plugins/maven/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -22,6 +22,11 @@
 maven-plugin-api
 2.0
 
+   
+ant
+ant
+1.6.5
+
 	
 
 


Modified: trunk/plugins/maven/src/it/pom.xml (751 => 752)

--- trunk/plugins/maven/src/it/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/src/it/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -15,6 +15,7 @@
 test3
 test4
 test5
+test6
 	
 
 


Added: trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/another.story (0 => 752)

--- trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/another.story	(rev 0)
+++ trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/another.story	2007-07-11 19:47:46 UTC (rev 752)
@@ -0,0 +1,5 @@
+Title: User runs integration test
+Scenario: User runs test successfully
+Given a test to be run
+When user runs test
+Then a test is run successfully


Added: trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/it2.story (0 => 752)

--- trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/it2.story	(rev 0)
+++ trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/stories/it2.story	2007-07-11 19:47:46 UTC (rev 752)
@@ -0,0 +1,5 @@
+Title: User runs integration test
+Scenario: User runs test successfully
+Given a test to be run
+When user runs test
+Then a test is run successfully


Modified: trunk/plugins/maven/src/it/test1/pom.xml (751 => 752)

--- trunk/plugins/maven/src/it/test1/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/src/it/test1/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -18,7 +18,7 @@
 	
 	
 	
-		${basedir}/../src/main
+		${basedir}/../src/main/java
 		
 			
 org.jbehave


Modified: trunk/plugins/maven/src/it/test2/pom.xml (751 => 752)

--- trunk/plugins/maven/src/it/test2/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/src/it/test2/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -18,7 +18,7 @@
 	
 	
 	
-		${basedir}/../src/main
+		${basedir}/../src/main/java
 
 
 ${basedir}/../src/main/java


Modified: trunk/plugins/maven/src/it/test3/pom.xml (751 => 752)

--- trunk/plugins/maven/src/it/test3/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/src/it/test3/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -18,7 +18,7 @@
 	
 	
 	
-		${basedir}/../src/main
+		${basedir}/../src/main/java
 
 
 ${basedir}/../src/main/java


Modified: trunk/plugins/maven/src/it/test4/pom.xml (751 => 752)

--- trunk/plugins/maven/src/it/test4/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/src/it/test4/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -24,7 +24,7 @@
 	
 	
 	
-		${basedir}/../src/test
+		${basedir}/../src/test/java
 		
 			
 org.jbehave


Modified: trunk/plugins/maven/src/it/test5/pom.xml (751 => 752)

--- trunk/plugins/maven/src/it/test5/pom.xml	2007-07-11 13:02:51 UTC (rev 751)
+++ trunk/plugins/maven/src/it/test5/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -18,7 +18,7 @@
 	
 	
 	
-		${basedir}/../src/main
+		${basedir}/../src/main/java
 
 
 ${basedir}/../src/main/java


Property changes: trunk/plugins/maven/src/it/test6

Name: svn:ignore
   + target


Added: trunk/plugins/maven/src/it/test6/pom.xml (0 => 752)

--- trunk/plugins/maven/src/it/test6/pom.xml	(rev 0)
+++ trunk/plugins/maven/src/it/test6/pom.xml	2007-07-11 19:47:46 UTC (rev 752)
@@ -0,0 +1,71 @@
+
+	4.0.0
+
+	org.jbehave
+	jbehav

[jbehave-scm] [751] trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java: Reduced unnecessary mojo member variable visibility.

2007-07-11 Thread mauro
Title:  [751] trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java: Reduced unnecessary mojo member variable visibility.







Revision 751
Author mauro
Date 2007-07-11 08:02:51 -0500 (Wed, 11 Jul 2007)


Log Message
Reduced unnecessary mojo member variable visibility.

Modified Paths

trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java




Diff

Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java (750 => 751)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java	2007-07-11 12:57:51 UTC (rev 750)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java	2007-07-11 13:02:51 UTC (rev 751)
@@ -21,7 +21,7 @@
  * @required
  * @readonly
  */
-protected List compileClasspathElements;
+private List compileClasspathElements;
 
 /**
  * Test classpath.
@@ -30,14 +30,14 @@
  * @required
  * @readonly
  */
-protected List testClasspathElements;
+private List testClasspathElements;

 /**
  * The scope of the mojo classpath
  *
  * @parameter default-value="compile" 
  */
-protected String scope;
+private String scope;
 
 /**
  * Creates the Behaviours ClassLoader with the classpath element of the selected scope










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Assigned: (JBEHAVE-91) Allow multiple stories to be run

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi reassigned JBEHAVE-91:
---

Assignee: Mauro Talevi

> Allow multiple stories to be run
> 
>
> Key: JBEHAVE-91
> URL: http://jira.codehaus.org/browse/JBEHAVE-91
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
> Fix For: 1.1
>
>
> Currently, only one story path can be specified.
> Allow multiple story paths to be specified as relative to a story base dir - 
> with includes/excludes patterns.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Work started: (JBEHAVE-91) Allow multiple stories to be run

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on JBEHAVE-91 started by Mauro Talevi.

> Allow multiple stories to be run
> 
>
> Key: JBEHAVE-91
> URL: http://jira.codehaus.org/browse/JBEHAVE-91
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
> Fix For: 1.1
>
>
> Currently, only one story path can be specified.
> Allow multiple story paths to be specified as relative to a story base dir - 
> with includes/excludes patterns.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-scm] [750] trunk/plugins/maven/src/main/java/org/jbehave/mojo: JBEHAVE-91: Refactored story mojos to print and run a list of stories.

2007-07-11 Thread mauro
Title:  [750] trunk/plugins/maven/src/main/java/org/jbehave/mojo: JBEHAVE-91: Refactored story mojos to print and run a list of stories.







Revision 750
Author mauro
Date 2007-07-11 07:57:51 -0500 (Wed, 11 Jul 2007)


Log Message
JBEHAVE-91: Refactored story mojos to print and run a list of stories. 
The configuration still supports the specification of a single story and configuration of multiple stories will be optional - and still to be added.

Modified Paths

trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java




Diff

Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java (749 => 750)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java	2007-07-11 12:44:27 UTC (rev 749)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java	2007-07-11 12:57:51 UTC (rev 750)
@@ -1,6 +1,8 @@
 package org.jbehave.mojo;
 
 import java.net.MalformedURLException;
+import java.util.ArrayList;
+import java.util.List;
 
 import org.jbehave.core.story.StoryLoader;
 import org.jbehave.core.story.codegen.parser.StoryParser;
@@ -17,13 +19,13 @@
  * @parameter
  * @required true
  */
-protected String storyPath;
+private String storyPath;
 
 /**
  * @parameter
  * @required true
  */
-protected String storyPackage;
+private String storyPackage;
 
 /**
  * @parameter default-value="org.jbehave.core.story.codegen.parser.TextStoryParser" 
@@ -60,10 +62,25 @@
 return new StoryLoader(getStoryParser(), createBehavioursClassLoader());
 }
 
+protected String getStoryPackage() {
+return storyPackage;
+}
+
+protected List getStoryPaths() {
+List storyPaths = new ArrayList();
+// a single story path is specified
+if ( storyPath != null ){
+storyPaths.add(storyPath);
+return storyPaths;
+}
+return storyPaths;
+}
+
 public static class InvalidClassNameException extends RuntimeException {
 public InvalidClassNameException(String message, Throwable cause) {
 super(message, cause);
 }
 }
 
+
 }


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java (749 => 750)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java	2007-07-11 12:44:27 UTC (rev 749)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java	2007-07-11 12:57:51 UTC (rev 750)
@@ -1,11 +1,15 @@
 package org.jbehave.mojo;
 
+import java.net.MalformedURLException;
+import java.util.Iterator;
+import java.util.List;
+
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
 import org.jbehave.core.story.StoryPrinter;
 
 /**
- * Mojo to print a story 
+ * Mojo to print stories 
  * 
  * @author Mauro Talevi
  * @goal print-story
@@ -13,13 +17,22 @@
 public class StoryPrinterMojo extends AbstractStoryMojo {
   
 public void execute() throws MojoExecutionException, MojoFailureException {
+String storyPackage = getStoryPackage();
+List storyPaths = getStoryPaths();
 try {
-getLog().debug("Printing story "+ storyPath);
-StoryPrinter storyPrinter = new StoryPrinter(getStoryLoader(), getStoryRenderer());
-storyPrinter.print(storyPath, storyPackage);
+for ( Iterator i = storyPaths.iterator(); i.hasNext(); ){
+String storyPath = (String)i.next();
+printStory(storyPackage, storyPath);
+}
 } catch (Exception e) {
-throw new MojoExecutionException("Failed to print story "+storyPath+" with package "+storyPackage, e);
+throw new MojoExecutionException("Failed to print stories "+storyPaths+" with package "+storyPackage, e);
 }
 }
+
+private void printStory(String storyPackage, String storyPath) throws MalformedURLException {
+getLog().debug("Printing story "+ storyPath+" using package "+storyPackage);
+StoryPrinter storyPrinter = new StoryPrinter(getStoryLoader(), getStoryRenderer());
+storyPrinter.print(storyPath, storyPackage);
+}
   
 }


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java (749 => 750)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java	2007-07-11 12:44:27 UTC (rev 749)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java	2007-07-11 12:57:51 UTC (rev 750)
@@ -1,6 +1,10 @@
 package org.jbehave.mojo;
 
 
+import java.net.MalformedURLException;
+import java.util.Iterator;
+import java.util.List;
+
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
 import org.

[jbehave-scm] [749] trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java: Set log level to debug.

2007-07-11 Thread mauro
Title:  [749] trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java: Set log level to debug.







Revision 749
Author mauro
Date 2007-07-11 07:44:27 -0500 (Wed, 11 Jul 2007)


Log Message
Set log level to debug.

Modified Paths

trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java




Diff

Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java (748 => 749)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java	2007-07-11 12:30:57 UTC (rev 748)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java	2007-07-11 12:44:27 UTC (rev 749)
@@ -46,13 +46,13 @@
 
 protected StoryParser getStoryParser() {
 StoryParser storyParser = (StoryParser) createInstance(storyParserClassName);   
-getLog().info("Using story parser "+storyParser.getClass().getName());
+getLog().debug("Using story parser "+storyParser.getClass().getName());
 return storyParser;
 }
 
 protected Renderer getStoryRenderer() {
 Renderer storyRenderer = (Renderer) createInstance(storyRendererClassName);   
-getLog().info("Using story renderer "+storyRenderer.getClass().getName());
+getLog().debug("Using story renderer "+storyRenderer.getClass().getName());
 return storyRenderer;
 }
 










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Closed: (JBEHAVE-92) Make story parser and renderer configurable

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi closed JBEHAVE-92.
---

Resolution: Fixed

Added optional configuration parameters storyParserClassName and 
storyRendererClassName, which default to 
org.jbehave.core.story.codegen.parser.TextStoryParser and 
org.jbehave.core.story.renderer.ConsolePlainTextRenderer.



> Make story parser and renderer configurable
> ---
>
> Key: JBEHAVE-92
> URL: http://jira.codehaus.org/browse/JBEHAVE-92
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Affects Versions: 1.0.1
>Reporter: Mauro Talevi
> Fix For: 1.1
>
>
> The implementation classes of the story parser and renderer should be 
> optionally be configurable and default to text-based parser and renderer.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-scm] [748] trunk/plugins/maven/src/it: JBEHAVE-92: Made story parser and renderer configurable and defaulting to text-based implementations.

2007-07-11 Thread mauro
Title:  [748] trunk/plugins/maven/src/it: JBEHAVE-92:  Made story parser and renderer configurable and defaulting to text-based implementations.







Revision 748
Author mauro
Date 2007-07-11 07:30:57 -0500 (Wed, 11 Jul 2007)


Log Message
JBEHAVE-92:  Made story parser and renderer configurable and defaulting to text-based implementations.  

Modified Paths

trunk/plugins/maven/src/it/pom.xml
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java


Added Paths

trunk/core/src/java/org/jbehave/core/story/renderer/ConsolePlainTextRenderer.java
trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItRenderer.java
trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItStoryParser.java
trunk/plugins/maven/src/it/test5/
trunk/plugins/maven/src/it/test5/pom.xml
trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java




Diff

Added: trunk/core/src/java/org/jbehave/core/story/renderer/ConsolePlainTextRenderer.java (0 => 748)

--- trunk/core/src/java/org/jbehave/core/story/renderer/ConsolePlainTextRenderer.java	(rev 0)
+++ trunk/core/src/java/org/jbehave/core/story/renderer/ConsolePlainTextRenderer.java	2007-07-11 12:30:57 UTC (rev 748)
@@ -0,0 +1,17 @@
+/*
+ * (c) 2003-2004 ThoughtWorks Ltd
+ *
+ * See license.txt for license details
+ */
+package org.jbehave.core.story.renderer;
+
+/**
+ * @author Mauro Talevi
+ */
+public class ConsolePlainTextRenderer extends PlainTextRenderer {
+
+public ConsolePlainTextRenderer() {
+super(System.out);
+}
+
+}


Modified: trunk/plugins/maven/src/it/pom.xml (747 => 748)

--- trunk/plugins/maven/src/it/pom.xml	2007-07-11 10:07:57 UTC (rev 747)
+++ trunk/plugins/maven/src/it/pom.xml	2007-07-11 12:30:57 UTC (rev 748)
@@ -14,6 +14,7 @@
 test2
 test3
 test4
+test5
 	
 
 


Added: trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItRenderer.java (0 => 748)

--- trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItRenderer.java	(rev 0)
+++ trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItRenderer.java	2007-07-11 12:30:57 UTC (rev 748)
@@ -0,0 +1,15 @@
+package org.jbehave.it;
+
+import org.jbehave.core.story.renderer.ConsolePlainTextRenderer;
+
+/**
+ * @author Mauro Talevi
+ */
+public class ItRenderer extends ConsolePlainTextRenderer {
+
+public ItRenderer() {
+super();
+System.out.println("Using ItRenderer");
+}
+
+}


Added: trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItStoryParser.java (0 => 748)

--- trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItStoryParser.java	(rev 0)
+++ trunk/plugins/maven/src/it/src/main/java/org/jbehave/it/ItStoryParser.java	2007-07-11 12:30:57 UTC (rev 748)
@@ -0,0 +1,16 @@
+package org.jbehave.it;
+
+import java.io.Reader;
+
+import org.jbehave.core.story.codegen.domain.StoryDetails;
+import org.jbehave.core.story.codegen.parser.TextStoryParser;
+
+
+public class ItStoryParser extends TextStoryParser {
+
+public ItStoryParser(){
+super();
+System.out.println("Using ItStoryParser");
+}
+
+}


Property changes: trunk/plugins/maven/src/it/test5

Name: svn:ignore
   + target


Added: trunk/plugins/maven/src/it/test5/pom.xml (0 => 748)

--- trunk/plugins/maven/src/it/test5/pom.xml	(rev 0)
+++ trunk/plugins/maven/src/it/test5/pom.xml	2007-07-11 12:30:57 UTC (rev 748)
@@ -0,0 +1,53 @@
+
+	4.0.0
+
+	org.jbehave
+	jbehave-maven-plugin-it-test5
+	1.1-SNAPSHOT
+	jar
+	jBehave Maven Plugin Integration Test 5
+
+	
+		
+			${pom.groupId}
+			jbehave
+			${pom.version}
+		
+	
+	
+	
+		${basedir}/../src/main
+
+
+${basedir}/../src/main/java
+
+**/*.story
+
+
+  
+		
+			
+org.jbehave
+jbehave-maven-plugin
+
+	
+		run-behaviours
+		integration-test
+		
+org/jbehave/it/stories/it.story
+org.jbehave.it.stories
+org.jbehave.it.ItStoryParser
+org.jbehave.it.ItRenderer
+
+		
+			run-story
+		
+	
+
+			
+		
+	
+
+


Added: trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java (0 => 748)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java	(rev 0)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractStoryMojo.java	2007-07-11 12:30:57 UTC (rev 748)
@@ -0,0 +1,69 @@
+package org.jbehave.mojo;
+
+import java.net.MalformedURLException;
+
+import org.jbehave.core.story.StoryLoader;
+import org.jbehave.core.story.codegen.parser.StoryParser;
+import org.jbehave.core.story.renderer.Renderer;
+
+/**
+ * Abstract mojo for story-related goals 

[jbehave-dev] [jira] Created: (JBEHAVE-92) Make story parser and renderer configurable

2007-07-11 Thread Mauro Talevi (JIRA)
Make story parser and renderer configurable
---

 Key: JBEHAVE-92
 URL: http://jira.codehaus.org/browse/JBEHAVE-92
 Project: JBehave
  Issue Type: Improvement
  Components: Maven Plugin
Affects Versions: 1.0.1
Reporter: Mauro Talevi
 Fix For: 1.1


The implementation classes of the story parser and renderer should be 
optionally be configurable and default to text-based parser and renderer.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Created: (JBEHAVE-91) Allow multiple stories to be run

2007-07-11 Thread Mauro Talevi (JIRA)
Allow multiple stories to be run


 Key: JBEHAVE-91
 URL: http://jira.codehaus.org/browse/JBEHAVE-91
 Project: JBehave
  Issue Type: Improvement
  Components: Maven Plugin
Reporter: Mauro Talevi
 Fix For: 1.1


Currently, only one story path can be specified.

Allow multiple story paths to be specified as relative to a story base dir - 
with includes/excludes patterns.





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-scm] [747] trunk/plugins/maven/src/it/test4: Pulled up creation of behaviours classloader in abstract mojo.

2007-07-11 Thread mauro
Title:  [747] trunk/plugins/maven/src/it/test4: Pulled up creation of behaviours classloader in abstract mojo.







Revision 747
Author mauro
Date 2007-07-11 05:07:57 -0500 (Wed, 11 Jul 2007)


Log Message
Pulled up creation of behaviours classloader in abstract mojo.

Modified Paths

trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/BehaviourRunnerMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java


Property Changed

trunk/plugins/maven/src/it/test4/




Diff

Property changes: trunk/plugins/maven/src/it/test4

Name: svn:ignore
   + target


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java (746 => 747)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java	2007-07-11 09:57:14 UTC (rev 746)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java	2007-07-11 10:07:57 UTC (rev 747)
@@ -1,5 +1,6 @@
 package org.jbehave.mojo;
 
+import java.net.MalformedURLException;
 import java.util.List;
 
 import org.apache.maven.plugin.AbstractMojo;
@@ -37,15 +38,18 @@
  * @parameter default-value="compile" 
  */
 protected String scope;
-
+
 /**
- * Returns the compile or test classpath elements based on the scope
- * @return A List of classpath elements
+ * Creates the Behaviours ClassLoader with the classpath element of the selected scope
+ * @return A BehavioursClassLoader
+ * @throws MalformedURLException
  */
-protected List getClasspathElements(){
+protected BehavioursClassLoader createBehavioursClassLoader() throws MalformedURLException {
+List classpathElements = compileClasspathElements;
 if ( TEST_SCOPE.equals(scope) ){
-return testClasspathElements;
-}
-return compileClasspathElements;
+classpathElements = testClasspathElements;
+} 
+return new BehavioursClassLoader(classpathElements);
 }
+
 }


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/BehaviourRunnerMojo.java (746 => 747)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/BehaviourRunnerMojo.java	2007-07-11 09:57:14 UTC (rev 746)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/BehaviourRunnerMojo.java	2007-07-11 10:07:57 UTC (rev 747)
@@ -37,7 +37,7 @@
 }
 
 private Behaviours loadBehaviours(String name) throws MalformedURLException, InstantiationException, IllegalAccessException {
-BehavioursClassLoader cl = new BehavioursClassLoader(getClasspathElements());
+BehavioursClassLoader cl = createBehavioursClassLoader();
 return cl.newBehaviours(name);
 }
 


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java (746 => 747)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java	2007-07-11 09:57:14 UTC (rev 746)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java	2007-07-11 10:07:57 UTC (rev 747)
@@ -34,7 +34,7 @@
 public void execute() throws MojoExecutionException, MojoFailureException {
 try {
 getLog().debug("Printing story "+ storyPath);
-StoryLoader loader = new StoryLoader(storyParser, new BehavioursClassLoader(getClasspathElements()));
+StoryLoader loader = new StoryLoader(storyParser, createBehavioursClassLoader());
 StoryPrinter storyPrinter = new StoryPrinter(loader, new PlainTextRenderer(System.out));
 storyPrinter.print(storyPath, storyPackage);
 } catch (Exception e) {


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java (746 => 747)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java	2007-07-11 09:57:14 UTC (rev 746)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java	2007-07-11 10:07:57 UTC (rev 747)
@@ -37,7 +37,7 @@
 public void execute() throws MojoExecutionException, MojoFailureException {
 try {
 getLog().debug("Running story "+ storyPath);
-StoryLoader loader = new StoryLoader(storyParser, new BehavioursClassLoader(getClasspathElements()));
+StoryLoader loader = new StoryLoader(storyParser, createBehavioursClassLoader());
 Story story = loader.loadStory(storyPath, storyPackage);
 			story.specify();
 storyRunner.run(story);










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Closed: (JBEHAVE-90) Allow goals to be run at test scope

2007-07-11 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi closed JBEHAVE-90.
---

Resolution: Fixed

Done

> Allow goals to be run at test scope
> ---
>
> Key: JBEHAVE-90
> URL: http://jira.codehaus.org/browse/JBEHAVE-90
> Project: JBehave
>  Issue Type: Improvement
>  Components: Maven Plugin
>Affects Versions: 1.0.1
>Reporter: Mauro Talevi
>Assignee: Mauro Talevi
> Fix For: 1.1
>
>
> By default goals are run at compile scope - ie assuming they are executed in 
> a separate module as integration tests.
> Some users may find it useful to run them at test scope, so the scope should 
> be configurable and according to it the appropriate classpath set.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



[jbehave-scm] [746] trunk/plugins/maven/src/it: JBEHAVE-90: Allow optional scope parameter to allow goals to be run in test scope.

2007-07-11 Thread mauro
Title:  [746] trunk/plugins/maven/src/it: JBEHAVE-90:  Allow optional scope parameter to allow goals to be run in test scope.







Revision 746
Author mauro
Date 2007-07-11 04:57:14 -0500 (Wed, 11 Jul 2007)


Log Message
JBEHAVE-90:  Allow optional scope parameter to allow goals to be run in test scope.

Modified Paths

trunk/plugins/maven/src/it/pom.xml
trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/BehaviourRunnerMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryPrinterMojo.java
trunk/plugins/maven/src/main/java/org/jbehave/mojo/StoryRunnerMojo.java


Added Paths

trunk/plugins/maven/src/it/src/test/
trunk/plugins/maven/src/it/src/test/java/
trunk/plugins/maven/src/it/src/test/java/org/
trunk/plugins/maven/src/it/src/test/java/org/jbehave/
trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/
trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/SampleBehaviourTest.java
trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/TestBehaviours.java
trunk/plugins/maven/src/it/test4/
trunk/plugins/maven/src/it/test4/pom.xml




Diff

Modified: trunk/plugins/maven/src/it/pom.xml (745 => 746)

--- trunk/plugins/maven/src/it/pom.xml	2007-07-11 08:39:11 UTC (rev 745)
+++ trunk/plugins/maven/src/it/pom.xml	2007-07-11 09:57:14 UTC (rev 746)
@@ -7,12 +7,13 @@
 	jbehave-maven-plugin-it
 	1.1-SNAPSHOT
 	pom
-	jBehave Maven Plugin Integration Test Reactor
+	jBehave Maven Plugin Integration Tests
 
 	
 test1
 test2
 test3
+test4
 	
 
 


Added: trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/SampleBehaviourTest.java (0 => 746)

--- trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/SampleBehaviourTest.java	(rev 0)
+++ trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/SampleBehaviourTest.java	2007-07-11 09:57:14 UTC (rev 746)
@@ -0,0 +1,12 @@
+package org.jbehave.it;
+
+public class SampleBehaviourTest extends junit.framework.TestCase {
+
+public void testNothing(){
+// keep junit happy
+}
+
+public void shouldDoSomethingInTestScope() {
+System.out.println("Done something in test scope");
+}
+}


Added: trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/TestBehaviours.java (0 => 746)

--- trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/TestBehaviours.java	(rev 0)
+++ trunk/plugins/maven/src/it/src/test/java/org/jbehave/it/TestBehaviours.java	2007-07-11 09:57:14 UTC (rev 746)
@@ -0,0 +1,14 @@
+package org.jbehave.it;
+
+import org.jbehave.core.behaviour.Behaviours;
+
+public class TestBehaviours implements Behaviours {
+
+public Class[] getBehaviours() {
+return new Class[] {
+org.jbehave.it.SampleBehaviourTest.class
+};
+}
+}
+
+


Added: trunk/plugins/maven/src/it/test4/pom.xml (0 => 746)

--- trunk/plugins/maven/src/it/test4/pom.xml	(rev 0)
+++ trunk/plugins/maven/src/it/test4/pom.xml	2007-07-11 09:57:14 UTC (rev 746)
@@ -0,0 +1,49 @@
+
+	4.0.0
+
+	org.jbehave
+	jbehave-maven-plugin-it-test4
+	1.1-SNAPSHOT
+	jar
+	jBehave Maven Plugin Integration Test 4
+
+	
+		
+			${pom.groupId}
+			jbehave
+			${pom.version}
+		
+
+junit
+junit
+3.8.2
+test
+
+	
+	
+	
+		${basedir}/../src/test
+		
+			
+org.jbehave
+jbehave-maven-plugin
+
+	
+		run-behaviours
+		integration-test
+		
+			org.jbehave.it.TestBehaviours
+test
+
+		
+			run-behaviours
+		
+	
+
+			
+		
+	
+
+


Modified: trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java (745 => 746)

--- trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java	2007-07-11 08:39:11 UTC (rev 745)
+++ trunk/plugins/maven/src/main/java/org/jbehave/mojo/AbstractJBehaveMojo.java	2007-07-11 09:57:14 UTC (rev 746)
@@ -11,6 +11,8 @@
  */
 public abstract class AbstractJBehaveMojo extends AbstractMojo {
 
+private static final String TEST_SCOPE = "test";
+
 /**
  * Compile classpath.
  *
@@ -18,7 +20,32 @@
  * @required
  * @readonly
  */
-List classpathElements;
+protected List compileClasspathElements;
 
+/**
+ * Test classpath.
+ *
+ * @parameter _expression_="${project.testClasspathElements}"
+ * @required
+ * @readonly
+ */
+protected List testClasspathElements;

+/**
+ * The scope of the mojo classpath
+ *
+ * @parameter default-value="compile" 
+ */
+protected String scope;
+
+/**
+ * Returns the compile or test classpath elements based on the scope
+ * @return A List of classpath elements
+ */
+protected List getClasspathElements(){
+if ( TEST_SCOPE.equals(scope) ){
+return testClasspathElements;
+}
+return compileClassp

[jbehave-scm] [745] trunk/.classpath: Updated after removal of antlr.

2007-07-11 Thread mauro
Title:  [745] trunk/.classpath: Updated after removal of antlr.







Revision 745
Author mauro
Date 2007-07-11 03:39:11 -0500 (Wed, 11 Jul 2007)


Log Message
Updated after removal of antlr.

Modified Paths

trunk/.classpath




Diff

Modified: trunk/.classpath (744 => 745)

--- trunk/.classpath	2007-07-10 15:37:04 UTC (rev 744)
+++ trunk/.classpath	2007-07-11 08:39:11 UTC (rev 745)
@@ -21,7 +21,6 @@
 	
 	
 	
-	
 	
 	
 	










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email