[Bug 1207116] Review Request: groovy-sandbox - Groovy sandbox for executing untrusted Groovy scripts safely

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1207116



--- Comment #1 from gil cattaneo <puntogil@xxxxxxxxx> ---
you could use antrun plugin to compile files groovy
e.g.
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.4</version>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy</artifactId>
            <version>1.8.9</version>
          </dependency>
          <dependency>
            <groupId>antlr</groupId>
            <artifactId>antlr</artifactId>
            <version>any</version>
          </dependency>
          <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
            <version>any</version>
          </dependency>
          <dependency>
            <groupId>asm</groupId>
            <artifactId>asm-all</artifactId>
            <version>3.3.1</version>
          </dependency>
          <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-nop</artifactId>
            <version>any</version>
          </dependency>
        </dependencies>

        <executions>
           <execution>
            <id>compile</id>
            <phase>process-sources</phase>
            <configuration>
              <target>
                <mkdir dir="${basedir}/target/classes"/>
                <taskdef name="groovyc"
classname="org.codehaus.groovy.ant.Groovyc">
                  <classpath refid="maven.plugin.classpath"/>
                </taskdef>
                <groovyc destdir="${project.build.outputDirectory}"
srcdir="${basedir}/src/main" classpathref="maven.compile.classpath">
                  <javac source="1.6" target="1.6" debug="on"/>
                </groovyc>
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]