Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR2
    • Fix Version/s: 2.1.0.Final
    • Component/s: UI - Shell
    • Labels:
      None

      Description

      I use a lot of scripts to start my projects, add/remove Maven dependencies.... So when I'm in Forge console, I type run ../myScript.fsh. For example, here is a script I use to get ride of EE 6 dependencies and add EE7 :

      @/* ====================================== */;
      @/* == From Java EE 6 to 7 Dependencies == */;
      @/* ====================================== */;
       
      project remove-dependency org.hibernate.javax.persistence:hibernate-jpa-2.0-api ;
      project remove-dependency javax.validation:validation-api ;
      project remove-dependency org.hibernate:hibernate-validator ;
      project remove-dependency javax.enterprise:cdi-api ;
      project remove-dependency org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec ;
      project remove-dependency org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec ;
      project remove-dependency org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec ;
      project remove-dependency org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec ;
      project remove-dependency org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec ;
      project remove-dependency org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec ;
       
      project add-dependency javax:javaee-api:7.0:provided ;
      project add-dependency org.primefaces:primefaces:4.0 ;
       
      project add-repository primefaces-repo http://repository.primefaces.org ;
      

      I have other scripts like that. The good this is, without leaving the console, I can write :

      [Forge]$ run script1.fsh
      [Forge]$ run script2.fsh
      [Forge]$ run script3.fsh
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lincolnthree Lincoln Baxter III
                Reporter:
                agoncal Antonio Goncalves
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: