Class: Expert::Maven
- Inherits:
-
Object
- Object
- Expert::Maven
- Defined in:
- lib/expert/maven.rb
Class Method Summary collapse
Class Method Details
.build_classpath(output_file) ⇒ Object
15 16 17 |
# File 'lib/expert/maven.rb', line 15 def build_classpath(output_file) execute("dependency:build-classpath -Dmdep.outputFile=#{output_file}") end |
.execute(cmd) ⇒ Object
7 8 9 |
# File 'lib/expert/maven.rb', line 7 def execute(cmd) system("#{mvn_path} #{cmd}") end |
.mvn_path ⇒ Object
19 20 21 22 23 24 |
# File 'lib/expert/maven.rb', line 19 def mvn_path @mvn_path ||= File.( "../../../vendor/apache-maven-#{Expert::MAVEN_VERSION}/bin/mvn", __FILE__ ) end |
.resolve ⇒ Object
11 12 13 |
# File 'lib/expert/maven.rb', line 11 def resolve execute('dependency:resolve') end |