naether 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -22,7 +22,7 @@ class Naether
22
22
  :naether_jar => File.join( gem_dir, "naether-#{version}.jar"),
23
23
  :platform => ($platform || RUBY_PLATFORM[/java/] || 'ruby'),
24
24
  :version => version,
25
- :depenencies_yml => File.expand_path("#{File.dirname( __FILE__ )}/../../jar_dependencies.yml")
25
+ :dependencies_yml => File.expand_path("#{File.dirname( __FILE__ )}/../../jar_dependencies.yml")
26
26
  }
27
27
 
28
28
  update!(data)
data/naether-0.9.1.jar ADDED
Binary file
data/pom.xml CHANGED
@@ -5,7 +5,7 @@
5
5
  <artifactId>naether</artifactId>
6
6
  <name>Naether</name>
7
7
  <packaging>jar</packaging>
8
- <version>0.9.0</version>
8
+ <version>0.9.1</version>
9
9
  <url>https://github.com/mguymon/naether</url>
10
10
  <description>
11
11
  A Java Dependency Resolver using Maven’s Aether.
@@ -229,6 +229,11 @@
229
229
  <configuration>
230
230
  </configuration>
231
231
  </plugin>
232
+ <plugin>
233
+ <groupId>org.apache.maven.plugins</groupId>
234
+ <artifactId>maven-surefire-report-plugin</artifactId>
235
+ <version>2.12.3</version>
236
+ </plugin>
232
237
  </plugins>
233
238
  </reporting>
234
239
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-12 00:00:00.000000000 Z
12
+ date: 2012-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rjb
@@ -136,27 +136,6 @@ files:
136
136
  - README.md
137
137
  - Rakefile
138
138
  - VERSION
139
- - doc/Naether.html
140
- - doc/Naether/Bootstrap.html
141
- - doc/Naether/Configurator.html
142
- - doc/Naether/Java.html
143
- - doc/Naether/Java/JRuby.html
144
- - doc/Naether/Java/Ruby.html
145
- - doc/Naether/Maven.html
146
- - doc/_index.html
147
- - doc/class_list.html
148
- - doc/css/common.css
149
- - doc/css/full_list.css
150
- - doc/css/style.css
151
- - doc/file.README.html
152
- - doc/file_list.html
153
- - doc/frames.html
154
- - doc/index.html
155
- - doc/js/app.js
156
- - doc/js/full_list.js
157
- - doc/js/jquery.js
158
- - doc/method_list.html
159
- - doc/top-level-namespace.html
160
139
  - jar_dependencies.yml
161
140
  - lib/naether.rb
162
141
  - lib/naether/bootstrap.rb
@@ -165,8 +144,7 @@ files:
165
144
  - lib/naether/java/jruby.rb
166
145
  - lib/naether/java/ruby.rb
167
146
  - lib/naether/maven.rb
168
- - naether-0.9.0.jar
169
- - naether.gemspec
147
+ - naether-0.9.1.jar
170
148
  - pom.xml
171
149
  homepage: http://github.com/mguymon/naether
172
150
  licenses:
@@ -183,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
161
  version: '0'
184
162
  segments:
185
163
  - 0
186
- hash: -1600822182013968182
164
+ hash: -1145581047078719787
187
165
  required_rubygems_version: !ruby/object:Gem::Requirement
188
166
  none: false
189
167
  requirements:
data/doc/Naether.html DELETED
@@ -1,3136 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Naether
8
-
9
- &mdash; Documentation by YARD 0.8.2.1
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="_index.html">Index (N)</a> &raquo;
35
-
36
-
37
- <span class="title">Naether</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: Naether
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Naether</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/naether.rb<span class="defines">,<br />
98
- lib/naether/java.rb,<br /> lib/naether/maven.rb,<br /> lib/naether/bootstrap.rb,<br /> lib/naether/java/ruby.rb,<br /> lib/naether/java/jruby.rb,<br /> lib/naether/configuration.rb</span>
99
- </dd>
100
-
101
- </dl>
102
- <div class="clear"></div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <h1 id="label-Authors">Authors</h1>
108
-
109
- <p>Michael Guymon</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div><h2>Defined Under Namespace</h2>
118
- <p class="children">
119
-
120
-
121
-
122
-
123
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Naether/Bootstrap.html" title="Naether::Bootstrap (class)">Bootstrap</a></span>, <span class='object_link'><a href="Naether/Configurator.html" title="Naether::Configurator (class)">Configurator</a></span>, <span class='object_link'><a href="Naether/Java.html" title="Naether::Java (class)">Java</a></span>, <span class='object_link'><a href="Naether/Maven.html" title="Naether::Maven (class)">Maven</a></span>
124
-
125
-
126
- </p>
127
-
128
-
129
-
130
-
131
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
132
- <ul class="summary">
133
-
134
- <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#resolver-instance_method" title="#resolver (instance method)">- (Object) <strong>resolver</strong> </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
-
145
-
146
- <span class="note title readonly">readonly</span>
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
- <span class="summary_desc"><div class='inline'>
157
- <p>Returns the value of attribute resolver.</p>
158
- </div></span>
159
-
160
- </li>
161
-
162
-
163
- </ul>
164
-
165
-
166
-
167
-
168
-
169
- <h2>
170
- Class Method Summary
171
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
172
- </h2>
173
-
174
- <ul class="summary">
175
-
176
- <li class="public ">
177
- <span class="summary_signature">
178
-
179
- <a href="#bootstrap_dependencies-class_method" title="bootstrap_dependencies (class method)">+ (Object) <strong>bootstrap_dependencies</strong>(dep_file = nil) </a>
180
-
181
-
182
-
183
- </span>
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
- <span class="summary_desc"><div class='inline'>
194
- <p>Helper for Java dependencies needed to bootstrap Naether.</p>
195
- </div></span>
196
-
197
- </li>
198
-
199
-
200
- <li class="public ">
201
- <span class="summary_signature">
202
-
203
- <a href="#create_from_jars-class_method" title="create_from_jars (class method)">+ (Naether) <strong>create_from_jars</strong>(jars) </a>
204
-
205
-
206
-
207
- </span>
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
- <span class="summary_desc"><div class='inline'>
218
- <p>Loads all jars creates a new instance of Naether.</p>
219
- </div></span>
220
-
221
- </li>
222
-
223
-
224
- <li class="public ">
225
- <span class="summary_signature">
226
-
227
- <a href="#platform-class_method" title="platform (class method)">+ (Object) <strong>platform</strong> </a>
228
-
229
-
230
-
231
- </span>
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
- <span class="summary_desc"><div class='inline'>
242
- <p>Helper for platform detection.</p>
243
- </div></span>
244
-
245
- </li>
246
-
247
-
248
- </ul>
249
-
250
- <h2>
251
- Instance Method Summary
252
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
253
- </h2>
254
-
255
- <ul class="summary">
256
-
257
- <li class="public ">
258
- <span class="summary_signature">
259
-
260
- <a href="#add_build_artifact-instance_method" title="#add_build_artifact (instance method)">- (Object) <strong>add_build_artifact</strong>(notation, path, pom = nil) </a>
261
-
262
-
263
-
264
- </span>
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
- <span class="summary_desc"><div class='inline'>
275
- <p>Add a local Build Artifact, that will be used in the Dependency Resolution.</p>
276
- </div></span>
277
-
278
- </li>
279
-
280
-
281
- <li class="public ">
282
- <span class="summary_signature">
283
-
284
- <a href="#add_dependency-instance_method" title="#add_dependency (instance method)">- (Object) <strong>add_dependency</strong>(dependency) </a>
285
-
286
-
287
-
288
- </span>
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
- <span class="summary_desc"><div class='inline'>
299
- <p>Add a dependency of org.sonatype.aether.graph.Dependency.</p>
300
- </div></span>
301
-
302
- </li>
303
-
304
-
305
- <li class="public ">
306
- <span class="summary_signature">
307
-
308
- <a href="#add_notation_dependency-instance_method" title="#add_notation_dependency (instance method)">- (Object) <strong>add_notation_dependency</strong>(notation, scope = 'compile') </a>
309
-
310
-
311
-
312
- </span>
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
- <span class="summary_desc"><div class='inline'>
323
- <p>Add a dependency.</p>
324
- </div></span>
325
-
326
- </li>
327
-
328
-
329
- <li class="public ">
330
- <span class="summary_signature">
331
-
332
- <a href="#add_pom_dependencies-instance_method" title="#add_pom_dependencies (instance method)">- (Object) <strong>add_pom_dependencies</strong>(pom_path, scopes = ['compile']) </a>
333
-
334
-
335
-
336
- </span>
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
- <span class="summary_desc"><div class='inline'>
347
- <p>Add dependencies from a Maven POM.</p>
348
- </div></span>
349
-
350
- </li>
351
-
352
-
353
- <li class="public ">
354
- <span class="summary_signature">
355
-
356
- <a href="#add_remote_repository-instance_method" title="#add_remote_repository (instance method)">- (Object) <strong>add_remote_repository</strong>(url, username = nil, password = nil) </a>
357
-
358
-
359
-
360
- </span>
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
- <span class="summary_desc"><div class='inline'>
371
- <p>Add remote repository.</p>
372
- </div></span>
373
-
374
- </li>
375
-
376
-
377
- <li class="public ">
378
- <span class="summary_signature">
379
-
380
- <a href="#build_artifacts-instance_method" title="#build_artifacts (instance method)">- (Array) <strong>build_artifacts</strong> </a>
381
-
382
-
383
-
384
- </span>
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
- <span class="summary_desc"><div class='inline'>
395
- <p>Get Build Artifacts.</p>
396
- </div></span>
397
-
398
- </li>
399
-
400
-
401
- <li class="public ">
402
- <span class="summary_signature">
403
-
404
- <a href="#build_artifacts%3D-instance_method" title="#build_artifacts= (instance method)">- (Object) <strong>build_artifacts=</strong>(artifacts) </a>
405
-
406
-
407
-
408
- </span>
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
- <span class="summary_desc"><div class='inline'>
419
- <p>Set local Build Artifacts, that will be used in the Dependency Resolution.</p>
420
- </div></span>
421
-
422
- </li>
423
-
424
-
425
- <li class="public ">
426
- <span class="summary_signature">
427
-
428
- <a href="#clear_remote_repositories-instance_method" title="#clear_remote_repositories (instance method)">- (Object) <strong>clear_remote_repositories</strong> </a>
429
-
430
-
431
-
432
- </span>
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
- <span class="summary_desc"><div class='inline'>
443
- <p>Clear all remote repositories.</p>
444
- </div></span>
445
-
446
- </li>
447
-
448
-
449
- <li class="public ">
450
- <span class="summary_signature">
451
-
452
- <a href="#dependencies-instance_method" title="#dependencies (instance method)">- (Array) <strong>dependencies</strong> </a>
453
-
454
-
455
-
456
- </span>
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
- <span class="summary_desc"><div class='inline'>
467
- <p>Get array of dependencies.</p>
468
- </div></span>
469
-
470
- </li>
471
-
472
-
473
- <li class="public ">
474
- <span class="summary_signature">
475
-
476
- <a href="#dependencies%3D-instance_method" title="#dependencies= (instance method)">- (Object) <strong>dependencies=</strong>(dependencies) </a>
477
-
478
-
479
-
480
- </span>
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
- <span class="summary_desc"><div class='inline'>
491
- <p>Set the dependencies.</p>
492
- </div></span>
493
-
494
- </li>
495
-
496
-
497
- <li class="public ">
498
- <span class="summary_signature">
499
-
500
- <a href="#dependencies_classpath-instance_method" title="#dependencies_classpath (instance method)">- (String) <strong>dependencies_classpath</strong> </a>
501
-
502
-
503
-
504
- </span>
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
- <span class="summary_desc"><div class='inline'>
515
- <p>Convert dependencies to Classpath friendly string.</p>
516
- </div></span>
517
-
518
- </li>
519
-
520
-
521
- <li class="public ">
522
- <span class="summary_signature">
523
-
524
- <a href="#dependencies_notation-instance_method" title="#dependencies_notation (instance method)">- (Array&lt;String&gt;) <strong>dependencies_notation</strong> </a>
525
-
526
-
527
-
528
- </span>
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
- <span class="summary_desc"><div class='inline'>
539
- <p>Get array of dependencies as notation.</p>
540
- </div></span>
541
-
542
- </li>
543
-
544
-
545
- <li class="public ">
546
- <span class="summary_signature">
547
-
548
- <a href="#dependencies_path-instance_method" title="#dependencies_path (instance method)">- (Array&lt;Hash&gt;) <strong>dependencies_path</strong> </a>
549
-
550
-
551
-
552
- </span>
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
- <span class="summary_desc"><div class='inline'>
563
- <p>Hash of dependency paths.</p>
564
- </div></span>
565
-
566
- </li>
567
-
568
-
569
- <li class="public ">
570
- <span class="summary_signature">
571
-
572
- <a href="#deploy_artifact-instance_method" title="#deploy_artifact (instance method)">- (Object) <strong>deploy_artifact</strong>(notation, file_path, url, opts = {}) </a>
573
-
574
-
575
-
576
- </span>
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
- <span class="summary_desc"><div class='inline'>
587
- <p>Deploy artifact to remote repo url.</p>
588
- </div></span>
589
-
590
- </li>
591
-
592
-
593
- <li class="public ">
594
- <span class="summary_signature">
595
-
596
- <a href="#download_artifacts-instance_method" title="#download_artifacts (instance method)">- (Array&lt;String&gt;) <strong>download_artifacts</strong>(notations) </a>
597
-
598
-
599
-
600
- </span>
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
- <span class="summary_desc"><div class='inline'>
611
- <p>Download artifacts.</p>
612
- </div></span>
613
-
614
- </li>
615
-
616
-
617
- <li class="public ">
618
- <span class="summary_signature">
619
-
620
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Naether) <strong>initialize</strong> </a>
621
-
622
-
623
-
624
- </span>
625
-
626
-
627
- <span class="note title constructor">constructor</span>
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
- <span class="summary_desc"><div class='inline'>
637
- <p>Create new instance.</p>
638
- </div></span>
639
-
640
- </li>
641
-
642
-
643
- <li class="public ">
644
- <span class="summary_signature">
645
-
646
- <a href="#install-instance_method" title="#install (instance method)">- (Object) <strong>install</strong>(notation, pom_path = nil, jar_path = nil) </a>
647
-
648
-
649
-
650
- </span>
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
- <span class="summary_desc"><div class='inline'>
661
- <p>Install artifact or pom to local repo, must specify pom_path and/or
662
- jar_path.</p>
663
- </div></span>
664
-
665
- </li>
666
-
667
-
668
- <li class="public ">
669
- <span class="summary_signature">
670
-
671
- <a href="#load_dependencies_to_classpath-instance_method" title="#load_dependencies_to_classpath (instance method)">- (Object) <strong>load_dependencies_to_classpath</strong> </a>
672
-
673
-
674
-
675
- </span>
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
- <span class="summary_desc"><div class='inline'>
686
- <p>Load dependencies to Classpath.</p>
687
- </div></span>
688
-
689
- </li>
690
-
691
-
692
- <li class="public ">
693
- <span class="summary_signature">
694
-
695
- <a href="#local_repo_path-instance_method" title="#local_repo_path (instance method)">- (String) <strong>local_repo_path</strong> </a>
696
-
697
-
698
-
699
- </span>
700
-
701
-
702
-
703
-
704
-
705
-
706
-
707
-
708
-
709
- <span class="summary_desc"><div class='inline'>
710
- <p>Path to local maven repo.</p>
711
- </div></span>
712
-
713
- </li>
714
-
715
-
716
- <li class="public ">
717
- <span class="summary_signature">
718
-
719
- <a href="#local_repo_path%3D-instance_method" title="#local_repo_path= (instance method)">- (Object) <strong>local_repo_path=</strong>(path) </a>
720
-
721
-
722
-
723
- </span>
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
- <span class="summary_desc"><div class='inline'>
734
- <p>Set path to local maven repo.</p>
735
- </div></span>
736
-
737
- </li>
738
-
739
-
740
- <li class="public ">
741
- <span class="summary_signature">
742
-
743
- <a href="#remote_repositories-instance_method" title="#remote_repositories (instance method)">- (Array) <strong>remote_repositories</strong> </a>
744
-
745
-
746
-
747
- </span>
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
- <span class="summary_desc"><div class='inline'>
758
- <p>Get remote repositories.</p>
759
- </div></span>
760
-
761
- </li>
762
-
763
-
764
- <li class="public ">
765
- <span class="summary_signature">
766
-
767
- <a href="#remote_repository_urls-instance_method" title="#remote_repository_urls (instance method)">- (Array&lt;String&gt;) <strong>remote_repository_urls</strong> </a>
768
-
769
-
770
-
771
- </span>
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
- <span class="summary_desc"><div class='inline'>
782
- <p>Get remote repositories as urls.</p>
783
- </div></span>
784
-
785
- </li>
786
-
787
-
788
- <li class="public ">
789
- <span class="summary_signature">
790
-
791
- <a href="#resolve_dependencies-instance_method" title="#resolve_dependencies (instance method)">- (Array&lt;String&gt;) <strong>resolve_dependencies</strong>(download_artifacts = true, properties = nil) </a>
792
-
793
-
794
-
795
- </span>
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
- <span class="summary_desc"><div class='inline'>
806
- <p>Resolve dependencies.</p>
807
- </div></span>
808
-
809
- </li>
810
-
811
-
812
- <li class="public ">
813
- <span class="summary_signature">
814
-
815
- <a href="#set_log_level-instance_method" title="#set_log_level (instance method)">- (Object) <strong>set_log_level</strong>(level) </a>
816
-
817
-
818
-
819
- </span>
820
-
821
-
822
-
823
-
824
-
825
-
826
-
827
-
828
-
829
- <span class="summary_desc"><div class='inline'>
830
- <p>Set Log level for Naether Java logging.</p>
831
- </div></span>
832
-
833
- </li>
834
-
835
-
836
- <li class="public ">
837
- <span class="summary_signature">
838
-
839
- <a href="#to_local_paths-instance_method" title="#to_local_paths (instance method)">- (Array&lt;String&gt;) <strong>to_local_paths</strong>(notations) </a>
840
-
841
-
842
-
843
- </span>
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
- <span class="summary_desc"><div class='inline'>
854
- <p>Convert notations to local paths of artifacts.</p>
855
- </div></span>
856
-
857
- </li>
858
-
859
-
860
- </ul>
861
-
862
-
863
- <div id="constructor_details" class="method_details_list">
864
- <h2>Constructor Details</h2>
865
-
866
- <div class="method_details first">
867
- <h3 class="signature first" id="initialize-instance_method">
868
-
869
- - (<tt><span class='object_link'><a href="" title="Naether (class)">Naether</a></span></tt>) <strong>initialize</strong>
870
-
871
-
872
-
873
-
874
-
875
- </h3><div class="docstring">
876
- <div class="discussion">
877
-
878
- <p>Create new instance.</p>
879
-
880
-
881
- </div>
882
- </div>
883
- <div class="tags">
884
-
885
-
886
- </div><table class="source_code">
887
- <tr>
888
- <td>
889
- <pre class="lines">
890
-
891
-
892
- 59
893
- 60
894
- 61</pre>
895
- </td>
896
- <td>
897
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 59</span>
898
-
899
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
900
- <span class='ivar'>@resolver</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>com.tobedevoured.naether.Naether</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
901
- <span class='kw'>end</span></pre>
902
- </td>
903
- </tr>
904
- </table>
905
- </div>
906
-
907
- </div>
908
-
909
- <div id="instance_attr_details" class="attr_details">
910
- <h2>Instance Attribute Details</h2>
911
-
912
-
913
- <span id=""></span>
914
- <div class="method_details first">
915
- <h3 class="signature first" id="resolver-instance_method">
916
-
917
- - (<tt>Object</tt>) <strong>resolver</strong> <span class="extras">(readonly)</span>
918
-
919
-
920
-
921
-
922
-
923
- </h3><div class="docstring">
924
- <div class="discussion">
925
-
926
- <p>Returns the value of attribute resolver</p>
927
-
928
-
929
- </div>
930
- </div>
931
- <div class="tags">
932
-
933
-
934
- </div><table class="source_code">
935
- <tr>
936
- <td>
937
- <pre class="lines">
938
-
939
-
940
- 27
941
- 28
942
- 29</pre>
943
- </td>
944
- <td>
945
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 27</span>
946
-
947
- <span class='kw'>def</span> <span class='id identifier rubyid_resolver'>resolver</span>
948
- <span class='ivar'>@resolver</span>
949
- <span class='kw'>end</span></pre>
950
- </td>
951
- </tr>
952
- </table>
953
- </div>
954
-
955
- </div>
956
-
957
-
958
- <div id="class_method_details" class="method_details_list">
959
- <h2>Class Method Details</h2>
960
-
961
-
962
- <div class="method_details first">
963
- <h3 class="signature first" id="bootstrap_dependencies-class_method">
964
-
965
- + (<tt>Object</tt>) <strong>bootstrap_dependencies</strong>(dep_file = nil)
966
-
967
-
968
-
969
-
970
-
971
- </h3><div class="docstring">
972
- <div class="discussion">
973
-
974
- <p>Helper for Java dependencies needed to bootstrap Naether</p>
975
-
976
-
977
- </div>
978
- </div>
979
- <div class="tags">
980
- <p class="tag_title">Parameters:</p>
981
- <ul class="param">
982
-
983
- <li>
984
-
985
- <span class='name'>dep_file</span>
986
-
987
-
988
- <span class='type'>(<tt>String</tt>)</span>
989
-
990
-
991
- <em class="default">(defaults to: <tt>nil</tt>)</em>
992
-
993
-
994
- &mdash;
995
- <div class='inline'>
996
- <p>path</p>
997
- </div>
998
-
999
- </li>
1000
-
1001
- </ul>
1002
-
1003
-
1004
- <p class="tag_title">See Also:</p>
1005
- <ul class="see">
1006
-
1007
- <li>{Naether{Naether::Bootstrap{Naether::Bootstrap#dependencies}</li>
1008
-
1009
- </ul>
1010
-
1011
- </div><table class="source_code">
1012
- <tr>
1013
- <td>
1014
- <pre class="lines">
1015
-
1016
-
1017
- 35
1018
- 36
1019
- 37</pre>
1020
- </td>
1021
- <td>
1022
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 35</span>
1023
-
1024
- <span class='kw'>def</span> <span class='id identifier rubyid_bootstrap_dependencies'>bootstrap_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span><span class='op'>=</span><span class='kw'>nil</span> <span class='rparen'>)</span>
1025
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span> <span class='rparen'>)</span>
1026
- <span class='kw'>end</span></pre>
1027
- </td>
1028
- </tr>
1029
- </table>
1030
- </div>
1031
-
1032
- <div class="method_details ">
1033
- <h3 class="signature " id="create_from_jars-class_method">
1034
-
1035
- + (<tt><span class='object_link'><a href="" title="Naether (class)">Naether</a></span></tt>) <strong>create_from_jars</strong>(jars)
1036
-
1037
-
1038
-
1039
-
1040
-
1041
- </h3><div class="docstring">
1042
- <div class="discussion">
1043
-
1044
- <p>Loads all jars creates a new instance of Naether</p>
1045
-
1046
-
1047
- </div>
1048
- </div>
1049
- <div class="tags">
1050
- <p class="tag_title">Parameters:</p>
1051
- <ul class="param">
1052
-
1053
- <li>
1054
-
1055
- <span class='name'>jars</span>
1056
-
1057
-
1058
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
1059
-
1060
-
1061
-
1062
- &mdash;
1063
- <div class='inline'>
1064
- <p>of paths</p>
1065
- </div>
1066
-
1067
- </li>
1068
-
1069
- </ul>
1070
-
1071
- <p class="tag_title">Returns:</p>
1072
- <ul class="return">
1073
-
1074
- <li>
1075
-
1076
-
1077
- <span class='type'>(<tt><span class='object_link'><a href="" title="Naether (class)">Naether</a></span></tt>)</span>
1078
-
1079
-
1080
-
1081
- </li>
1082
-
1083
- </ul>
1084
-
1085
- </div><table class="source_code">
1086
- <tr>
1087
- <td>
1088
- <pre class="lines">
1089
-
1090
-
1091
- 51
1092
- 52
1093
- 53
1094
- 54</pre>
1095
- </td>
1096
- <td>
1097
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 51</span>
1098
-
1099
- <span class='kw'>def</span> <span class='id identifier rubyid_create_from_jars'>create_from_jars</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
1100
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_internal_load_paths'>internal_load_paths</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
1101
- <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1102
- <span class='kw'>end</span></pre>
1103
- </td>
1104
- </tr>
1105
- </table>
1106
- </div>
1107
-
1108
- <div class="method_details ">
1109
- <h3 class="signature " id="platform-class_method">
1110
-
1111
- + (<tt>Object</tt>) <strong>platform</strong>
1112
-
1113
-
1114
-
1115
-
1116
-
1117
- </h3><div class="docstring">
1118
- <div class="discussion">
1119
-
1120
- <p>Helper for platform detection</p>
1121
-
1122
-
1123
- </div>
1124
- </div>
1125
- <div class="tags">
1126
-
1127
-
1128
- </div><table class="source_code">
1129
- <tr>
1130
- <td>
1131
- <pre class="lines">
1132
-
1133
-
1134
- 42
1135
- 43
1136
- 44</pre>
1137
- </td>
1138
- <td>
1139
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 42</span>
1140
-
1141
- <span class='kw'>def</span> <span class='id identifier rubyid_platform'>platform</span>
1142
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span>
1143
- <span class='kw'>end</span></pre>
1144
- </td>
1145
- </tr>
1146
- </table>
1147
- </div>
1148
-
1149
- </div>
1150
-
1151
- <div id="instance_method_details" class="method_details_list">
1152
- <h2>Instance Method Details</h2>
1153
-
1154
-
1155
- <div class="method_details first">
1156
- <h3 class="signature first" id="add_build_artifact-instance_method">
1157
-
1158
- - (<tt>Object</tt>) <strong>add_build_artifact</strong>(notation, path, pom = nil)
1159
-
1160
-
1161
-
1162
-
1163
-
1164
- </h3><div class="docstring">
1165
- <div class="discussion">
1166
-
1167
- <p>Add a local Build Artifact, that will be used in the Dependency Resolution</p>
1168
-
1169
-
1170
- </div>
1171
- </div>
1172
- <div class="tags">
1173
- <p class="tag_title">Parameters:</p>
1174
- <ul class="param">
1175
-
1176
- <li>
1177
-
1178
- <span class='name'>notation</span>
1179
-
1180
-
1181
- <span class='type'>(<tt>String</tt>)</span>
1182
-
1183
-
1184
-
1185
- </li>
1186
-
1187
- <li>
1188
-
1189
- <span class='name'>path</span>
1190
-
1191
-
1192
- <span class='type'>(<tt>String</tt>)</span>
1193
-
1194
-
1195
-
1196
- &mdash;
1197
- <div class='inline'>
1198
- <p>to artifact</p>
1199
- </div>
1200
-
1201
- </li>
1202
-
1203
- <li>
1204
-
1205
- <span class='name'>pom</span>
1206
-
1207
-
1208
- <span class='type'>(<tt>String</tt>)</span>
1209
-
1210
-
1211
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1212
-
1213
-
1214
- &mdash;
1215
- <div class='inline'>
1216
- <p>optional path to pom.xml</p>
1217
- </div>
1218
-
1219
- </li>
1220
-
1221
- </ul>
1222
-
1223
-
1224
- </div><table class="source_code">
1225
- <tr>
1226
- <td>
1227
- <pre class="lines">
1228
-
1229
-
1230
- 116
1231
- 117
1232
- 118</pre>
1233
- </td>
1234
- <td>
1235
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 116</span>
1236
-
1237
- <span class='kw'>def</span> <span class='id identifier rubyid_add_build_artifact'>add_build_artifact</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_pom'>pom</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
1238
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_addBuildArtifact'>addBuildArtifact</span><span class='lparen'>(</span><span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_pom'>pom</span> <span class='rparen'>)</span>
1239
- <span class='kw'>end</span></pre>
1240
- </td>
1241
- </tr>
1242
- </table>
1243
- </div>
1244
-
1245
- <div class="method_details ">
1246
- <h3 class="signature " id="add_dependency-instance_method">
1247
-
1248
- - (<tt>Object</tt>) <strong>add_dependency</strong>(dependency)
1249
-
1250
-
1251
-
1252
-
1253
-
1254
- </h3><div class="docstring">
1255
- <div class="discussion">
1256
-
1257
- <p>Add a dependency of org.sonatype.aether.graph.Dependency</p>
1258
-
1259
-
1260
- </div>
1261
- </div>
1262
- <div class="tags">
1263
- <p class="tag_title">Parameters:</p>
1264
- <ul class="param">
1265
-
1266
- <li>
1267
-
1268
- <span class='name'>dependency</span>
1269
-
1270
-
1271
- <span class='type'>(<tt>org.sonatype.aether.graph.Dependency</tt>)</span>
1272
-
1273
-
1274
-
1275
- </li>
1276
-
1277
- </ul>
1278
-
1279
-
1280
- </div><table class="source_code">
1281
- <tr>
1282
- <td>
1283
- <pre class="lines">
1284
-
1285
-
1286
- 184
1287
- 185
1288
- 186
1289
- 187
1290
- 188
1291
- 189
1292
- 190
1293
- 191</pre>
1294
- </td>
1295
- <td>
1296
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 184</span>
1297
-
1298
- <span class='kw'>def</span> <span class='id identifier rubyid_add_dependency'>add_dependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependency'>dependency</span> <span class='rparen'>)</span>
1299
- <span class='comment'>#@resolver.addDependency( dependency )
1300
- </span> <span class='kw'>if</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
1301
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_addDependency'>addDependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependency'>dependency</span> <span class='rparen'>)</span>
1302
- <span class='kw'>else</span>
1303
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid__invoke'>_invoke</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>addDependency</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Lorg.sonatype.aether.graph.Dependency;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_dependency'>dependency</span><span class='rparen'>)</span>
1304
- <span class='kw'>end</span>
1305
- <span class='kw'>end</span></pre>
1306
- </td>
1307
- </tr>
1308
- </table>
1309
- </div>
1310
-
1311
- <div class="method_details ">
1312
- <h3 class="signature " id="add_notation_dependency-instance_method">
1313
-
1314
- - (<tt>Object</tt>) <strong>add_notation_dependency</strong>(notation, scope = 'compile')
1315
-
1316
-
1317
-
1318
-
1319
-
1320
- </h3><div class="docstring">
1321
- <div class="discussion">
1322
-
1323
- <p>Add a dependency</p>
1324
-
1325
-
1326
- </div>
1327
- </div>
1328
- <div class="tags">
1329
- <p class="tag_title">Parameters:</p>
1330
- <ul class="param">
1331
-
1332
- <li>
1333
-
1334
- <span class='name'>notation</span>
1335
-
1336
-
1337
- <span class='type'>(<tt>String</tt>)</span>
1338
-
1339
-
1340
-
1341
- &mdash;
1342
- <div class='inline'>
1343
- <p>in the format of groupId:artifactId:version</p>
1344
- </div>
1345
-
1346
- </li>
1347
-
1348
- <li>
1349
-
1350
- <span class='name'>scope</span>
1351
-
1352
-
1353
- <span class='type'>(<tt>String</tt>)</span>
1354
-
1355
-
1356
- <em class="default">(defaults to: <tt>'compile'</tt>)</em>
1357
-
1358
-
1359
- &mdash;
1360
- <div class='inline'>
1361
- <p>valid options are compile,test,runtime</p>
1362
- </div>
1363
-
1364
- </li>
1365
-
1366
- </ul>
1367
-
1368
-
1369
- <p class="tag_title">See Also:</p>
1370
- <ul class="see">
1371
-
1372
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
1373
-
1374
- </ul>
1375
-
1376
- </div><table class="source_code">
1377
- <tr>
1378
- <td>
1379
- <pre class="lines">
1380
-
1381
-
1382
- 164
1383
- 165
1384
- 166</pre>
1385
- </td>
1386
- <td>
1387
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 164</span>
1388
-
1389
- <span class='kw'>def</span> <span class='id identifier rubyid_add_notation_dependency'>add_notation_dependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>compile</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span>
1390
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_addDependency'>addDependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='rparen'>)</span>
1391
- <span class='kw'>end</span></pre>
1392
- </td>
1393
- </tr>
1394
- </table>
1395
- </div>
1396
-
1397
- <div class="method_details ">
1398
- <h3 class="signature " id="add_pom_dependencies-instance_method">
1399
-
1400
- - (<tt>Object</tt>) <strong>add_pom_dependencies</strong>(pom_path, scopes = ['compile'])
1401
-
1402
-
1403
-
1404
-
1405
-
1406
- </h3><div class="docstring">
1407
- <div class="discussion">
1408
-
1409
- <p>Add dependencies from a Maven POM</p>
1410
-
1411
-
1412
- </div>
1413
- </div>
1414
- <div class="tags">
1415
- <p class="tag_title">Parameters:</p>
1416
- <ul class="param">
1417
-
1418
- <li>
1419
-
1420
- <span class='name'>pom_path</span>
1421
-
1422
-
1423
- <span class='type'>(<tt>String</tt>)</span>
1424
-
1425
-
1426
-
1427
- </li>
1428
-
1429
- <li>
1430
-
1431
- <span class='name'>scopes</span>
1432
-
1433
-
1434
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
1435
-
1436
-
1437
- <em class="default">(defaults to: <tt>['compile']</tt>)</em>
1438
-
1439
-
1440
- &mdash;
1441
- <div class='inline'>
1442
- <p>valid options are compile,test,runtime</p>
1443
- </div>
1444
-
1445
- </li>
1446
-
1447
- </ul>
1448
-
1449
-
1450
- </div><table class="source_code">
1451
- <tr>
1452
- <td>
1453
- <pre class="lines">
1454
-
1455
-
1456
- 172
1457
- 173
1458
- 174
1459
- 175
1460
- 176
1461
- 177
1462
- 178
1463
- 179</pre>
1464
- </td>
1465
- <td>
1466
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 172</span>
1467
-
1468
- <span class='kw'>def</span> <span class='id identifier rubyid_add_pom_dependencies'>add_pom_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom_path'>pom_path</span><span class='comma'>,</span> <span class='id identifier rubyid_scopes'>scopes</span><span class='op'>=</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>compile</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='rparen'>)</span>
1469
- <span class='kw'>if</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
1470
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_addDependencies'>addDependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom_path'>pom_path</span><span class='comma'>,</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='rparen'>)</span>
1471
- <span class='kw'>else</span>
1472
- <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_java_list'>convert_to_java_list</span><span class='lparen'>(</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='rparen'>)</span>
1473
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid__invoke'>_invoke</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>addDependencies</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Ljava.lang.String;Ljava.util.List;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_pom_path'>pom_path</span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
1474
- <span class='kw'>end</span>
1475
- <span class='kw'>end</span></pre>
1476
- </td>
1477
- </tr>
1478
- </table>
1479
- </div>
1480
-
1481
- <div class="method_details ">
1482
- <h3 class="signature " id="add_remote_repository-instance_method">
1483
-
1484
- - (<tt>Object</tt>) <strong>add_remote_repository</strong>(url, username = nil, password = nil)
1485
-
1486
-
1487
-
1488
-
1489
-
1490
- </h3><div class="docstring">
1491
- <div class="discussion">
1492
-
1493
- <p>Add remote repository</p>
1494
-
1495
-
1496
- </div>
1497
- </div>
1498
- <div class="tags">
1499
- <p class="tag_title">Parameters:</p>
1500
- <ul class="param">
1501
-
1502
- <li>
1503
-
1504
- <span class='name'>url</span>
1505
-
1506
-
1507
- <span class='type'>(<tt>String</tt>)</span>
1508
-
1509
-
1510
-
1511
- &mdash;
1512
- <div class='inline'>
1513
- <p>of remote repo</p>
1514
- </div>
1515
-
1516
- </li>
1517
-
1518
- <li>
1519
-
1520
- <span class='name'>username</span>
1521
-
1522
-
1523
- <span class='type'>(<tt>String</tt>)</span>
1524
-
1525
-
1526
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1527
-
1528
-
1529
- &mdash;
1530
- <div class='inline'>
1531
- <p>optional</p>
1532
- </div>
1533
-
1534
- </li>
1535
-
1536
- <li>
1537
-
1538
- <span class='name'>password</span>
1539
-
1540
-
1541
- <span class='type'>(<tt>String</tt>)</span>
1542
-
1543
-
1544
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1545
-
1546
-
1547
- &mdash;
1548
- <div class='inline'>
1549
- <p>optioanl</p>
1550
- </div>
1551
-
1552
- </li>
1553
-
1554
- </ul>
1555
-
1556
-
1557
- </div><table class="source_code">
1558
- <tr>
1559
- <td>
1560
- <pre class="lines">
1561
-
1562
-
1563
- 73
1564
- 74
1565
- 75
1566
- 76
1567
- 77
1568
- 78
1569
- 79</pre>
1570
- </td>
1571
- <td>
1572
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 73</span>
1573
-
1574
- <span class='kw'>def</span> <span class='id identifier rubyid_add_remote_repository'>add_remote_repository</span><span class='lparen'>(</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
1575
- <span class='kw'>if</span> <span class='id identifier rubyid_username'>username</span>
1576
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_addRemoteRepositoryByUrl'>addRemoteRepositoryByUrl</span><span class='lparen'>(</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span> <span class='rparen'>)</span>
1577
- <span class='kw'>else</span>
1578
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_addRemoteRepositoryByUrl'>addRemoteRepositoryByUrl</span><span class='lparen'>(</span> <span class='id identifier rubyid_url'>url</span> <span class='rparen'>)</span>
1579
- <span class='kw'>end</span>
1580
- <span class='kw'>end</span></pre>
1581
- </td>
1582
- </tr>
1583
- </table>
1584
- </div>
1585
-
1586
- <div class="method_details ">
1587
- <h3 class="signature " id="build_artifacts-instance_method">
1588
-
1589
- - (<tt>Array</tt>) <strong>build_artifacts</strong>
1590
-
1591
-
1592
-
1593
-
1594
-
1595
- </h3><div class="docstring">
1596
- <div class="discussion">
1597
-
1598
- <p>Get Build Artifacts</p>
1599
-
1600
-
1601
- </div>
1602
- </div>
1603
- <div class="tags">
1604
-
1605
- <p class="tag_title">Returns:</p>
1606
- <ul class="return">
1607
-
1608
- <li>
1609
-
1610
-
1611
- <span class='type'>(<tt>Array</tt>)</span>
1612
-
1613
-
1614
-
1615
- &mdash;
1616
- <div class='inline'>
1617
- <p>of build artifacts</p>
1618
- </div>
1619
-
1620
- </li>
1621
-
1622
- </ul>
1623
-
1624
- </div><table class="source_code">
1625
- <tr>
1626
- <td>
1627
- <pre class="lines">
1628
-
1629
-
1630
- 155
1631
- 156
1632
- 157</pre>
1633
- </td>
1634
- <td>
1635
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 155</span>
1636
-
1637
- <span class='kw'>def</span> <span class='id identifier rubyid_build_artifacts'>build_artifacts</span>
1638
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span> <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getBuildArtifacts'>getBuildArtifacts</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='rparen'>)</span>
1639
- <span class='kw'>end</span></pre>
1640
- </td>
1641
- </tr>
1642
- </table>
1643
- </div>
1644
-
1645
- <div class="method_details ">
1646
- <h3 class="signature " id="build_artifacts=-instance_method">
1647
-
1648
- - (<tt>Object</tt>) <strong>build_artifacts=</strong>(artifacts)
1649
-
1650
-
1651
-
1652
-
1653
-
1654
- </h3><div class="docstring">
1655
- <div class="discussion">
1656
-
1657
- <p>Set local Build Artifacts, that will be used in the Dependency Resolution</p>
1658
-
1659
-
1660
- </div>
1661
- </div>
1662
- <div class="tags">
1663
- <p class="tag_title">Parameters:</p>
1664
- <ul class="param">
1665
-
1666
- <li>
1667
-
1668
- <span class='name'>artifacts</span>
1669
-
1670
-
1671
- <span class='type'>(<tt>Array&lt;Hash&gt;</tt>)</span>
1672
-
1673
-
1674
-
1675
- &mdash;
1676
- <div class='inline'>
1677
- <p>of Hashs with { notation =&gt; path } or { notation =&gt; { :path =&gt;
1678
- path, :pom =&gt; pom_path }</p>
1679
- </div>
1680
-
1681
- </li>
1682
-
1683
- </ul>
1684
-
1685
-
1686
- </div><table class="source_code">
1687
- <tr>
1688
- <td>
1689
- <pre class="lines">
1690
-
1691
-
1692
- 125
1693
- 126
1694
- 127
1695
- 128
1696
- 129
1697
- 130
1698
- 131
1699
- 132
1700
- 133
1701
- 134
1702
- 135
1703
- 136
1704
- 137
1705
- 138
1706
- 139
1707
- 140
1708
- 141
1709
- 142
1710
- 143
1711
- 144
1712
- 145
1713
- 146
1714
- 147
1715
- 148</pre>
1716
- </td>
1717
- <td>
1718
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 125</span>
1719
-
1720
- <span class='kw'>def</span> <span class='id identifier rubyid_build_artifacts='>build_artifacts=</span><span class='lparen'>(</span> <span class='id identifier rubyid_artifacts'>artifacts</span> <span class='rparen'>)</span>
1721
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_clearBuildArtifacts'>clearBuildArtifacts</span><span class='lparen'>(</span><span class='rparen'>)</span>
1722
-
1723
- <span class='kw'>unless</span> <span class='id identifier rubyid_artifacts'>artifacts</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
1724
- <span class='id identifier rubyid_artifacts'>artifacts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_artifacts'>artifacts</span><span class='rbracket'>]</span>
1725
- <span class='kw'>end</span>
1726
-
1727
- <span class='id identifier rubyid_artifacts'>artifacts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_artifact'>artifact</span><span class='op'>|</span>
1728
- <span class='comment'># Hash of notation =&gt; path or notation =&gt; { :path =&gt;, :pom =&gt; }
1729
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
1730
-
1731
- <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_shift'>shift</span>
1732
-
1733
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
1734
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_add_build_artifact'>add_build_artifact</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:path</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pom</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
1735
- <span class='kw'>else</span>
1736
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_add_build_artifact'>add_build_artifact</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='rparen'>)</span>
1737
- <span class='kw'>end</span>
1738
-
1739
- <span class='kw'>else</span>
1740
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>invalid build_artifacts format</span><span class='tstring_end'>&quot;</span></span>
1741
- <span class='kw'>end</span>
1742
- <span class='kw'>end</span>
1743
- <span class='kw'>end</span></pre>
1744
- </td>
1745
- </tr>
1746
- </table>
1747
- </div>
1748
-
1749
- <div class="method_details ">
1750
- <h3 class="signature " id="clear_remote_repositories-instance_method">
1751
-
1752
- - (<tt>Object</tt>) <strong>clear_remote_repositories</strong>
1753
-
1754
-
1755
-
1756
-
1757
-
1758
- </h3><div class="docstring">
1759
- <div class="discussion">
1760
-
1761
- <p>Clear all remote repositories</p>
1762
-
1763
-
1764
- </div>
1765
- </div>
1766
- <div class="tags">
1767
-
1768
-
1769
- </div><table class="source_code">
1770
- <tr>
1771
- <td>
1772
- <pre class="lines">
1773
-
1774
-
1775
- 64
1776
- 65
1777
- 66</pre>
1778
- </td>
1779
- <td>
1780
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 64</span>
1781
-
1782
- <span class='kw'>def</span> <span class='id identifier rubyid_clear_remote_repositories'>clear_remote_repositories</span>
1783
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_clearRemoteRepositories'>clearRemoteRepositories</span><span class='lparen'>(</span><span class='rparen'>)</span>
1784
- <span class='kw'>end</span></pre>
1785
- </td>
1786
- </tr>
1787
- </table>
1788
- </div>
1789
-
1790
- <div class="method_details ">
1791
- <h3 class="signature " id="dependencies-instance_method">
1792
-
1793
- - (<tt>Array</tt>) <strong>dependencies</strong>
1794
-
1795
-
1796
-
1797
-
1798
-
1799
- </h3><div class="docstring">
1800
- <div class="discussion">
1801
-
1802
- <p>Get array of dependencies</p>
1803
-
1804
-
1805
- </div>
1806
- </div>
1807
- <div class="tags">
1808
-
1809
- <p class="tag_title">Returns:</p>
1810
- <ul class="return">
1811
-
1812
- <li>
1813
-
1814
-
1815
- <span class='type'>(<tt>Array</tt>)</span>
1816
-
1817
-
1818
-
1819
- </li>
1820
-
1821
- </ul>
1822
-
1823
- </div><table class="source_code">
1824
- <tr>
1825
- <td>
1826
- <pre class="lines">
1827
-
1828
-
1829
- 252
1830
- 253
1831
- 254</pre>
1832
- </td>
1833
- <td>
1834
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 252</span>
1835
-
1836
- <span class='kw'>def</span> <span class='id identifier rubyid_dependencies'>dependencies</span>
1837
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span> <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getDependencies'>getDependencies</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='rparen'>)</span>
1838
- <span class='kw'>end</span></pre>
1839
- </td>
1840
- </tr>
1841
- </table>
1842
- </div>
1843
-
1844
- <div class="method_details ">
1845
- <h3 class="signature " id="dependencies=-instance_method">
1846
-
1847
- - (<tt>Object</tt>) <strong>dependencies=</strong>(dependencies)
1848
-
1849
-
1850
-
1851
-
1852
-
1853
- </h3><div class="docstring">
1854
- <div class="discussion">
1855
-
1856
- <p>Set the dependencies</p>
1857
-
1858
- <p>The dependencies param takes an [Array] of mixed dependencies:</p>
1859
-
1860
- <pre class="ruby">* [<span class="ruby-constant">String</span>] <span class="ruby-constant">Artifact</span> <span class="ruby-identifier">notation</span>, <span class="ruby-identifier">such</span> <span class="ruby-identifier">as</span> <span class="ruby-identifier">groupId</span>:<span class="ruby-identifier">artifactId</span><span class="ruby-operator">:</span><span class="ruby-identifier">version</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">g</span>. <span class="ruby-string">'junit:junit:4.7'</span>
1861
- * [<span class="ruby-constant">Hash</span>] <span class="ruby-identifier">of</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">single</span> <span class="ruby-identifier">artifaction</span> <span class="ruby-identifier">notation</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">scope</span> <span class="ruby-operator">-</span> { <span class="ruby-string">'junit:junit:4.7'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'test'</span> }
1862
- * [<span class="ruby-constant">String</span>] <span class="ruby-identifier">path</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">local</span> <span class="ruby-identifier">pom</span> <span class="ruby-operator">-</span> <span class="ruby-string">'lib/pom.xml'</span>
1863
- * [<span class="ruby-constant">Hash</span>] <span class="ruby-identifier">of</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">single</span> <span class="ruby-identifier">path</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">a</span> <span class="ruby-identifier">local</span> <span class="ruby-identifier">pom</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">scope</span> <span class="ruby-operator">-</span> { <span class="ruby-string">'lib/pom.xml'</span> =<span class="ruby-operator">&gt;</span> [<span class="ruby-string">'compile'</span>,<span class="ruby-string">'test'</span>] }
1864
- </pre>
1865
-
1866
-
1867
- </div>
1868
- </div>
1869
- <div class="tags">
1870
- <p class="tag_title">Parameters:</p>
1871
- <ul class="param">
1872
-
1873
- <li>
1874
-
1875
- <span class='name'>dependencies</span>
1876
-
1877
-
1878
- <span class='type'>(<tt>Array</tt>)</span>
1879
-
1880
-
1881
-
1882
- </li>
1883
-
1884
- </ul>
1885
-
1886
-
1887
- <p class="tag_title">See Also:</p>
1888
- <ul class="see">
1889
-
1890
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
1891
-
1892
- </ul>
1893
-
1894
- </div><table class="source_code">
1895
- <tr>
1896
- <td>
1897
- <pre class="lines">
1898
-
1899
-
1900
- 203
1901
- 204
1902
- 205
1903
- 206
1904
- 207
1905
- 208
1906
- 209
1907
- 210
1908
- 211
1909
- 212
1910
- 213
1911
- 214
1912
- 215
1913
- 216
1914
- 217
1915
- 218
1916
- 219
1917
- 220
1918
- 221
1919
- 222
1920
- 223
1921
- 224
1922
- 225
1923
- 226
1924
- 227
1925
- 228
1926
- 229
1927
- 230
1928
- 231
1929
- 232
1930
- 233
1931
- 234
1932
- 235
1933
- 236
1934
- 237
1935
- 238
1936
- 239
1937
- 240
1938
- 241
1939
- 242
1940
- 243
1941
- 244
1942
- 245
1943
- 246
1944
- 247</pre>
1945
- </td>
1946
- <td>
1947
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 203</span>
1948
-
1949
- <span class='kw'>def</span> <span class='id identifier rubyid_dependencies='>dependencies=</span><span class='lparen'>(</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='rparen'>)</span>
1950
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_clearDependencies'>clearDependencies</span><span class='lparen'>(</span><span class='rparen'>)</span>
1951
-
1952
- <span class='kw'>unless</span> <span class='id identifier rubyid_dependencies'>dependencies</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
1953
- <span class='id identifier rubyid_dependencies'>dependencies</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='rbracket'>]</span>
1954
- <span class='kw'>end</span>
1955
-
1956
- <span class='id identifier rubyid_dependencies'>dependencies</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dependent'>dependent</span><span class='op'>|</span>
1957
- <span class='comment'># Hash of notation =&gt; scope
1958
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
1959
- <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
1960
-
1961
- <span class='comment'># Add pom dependencies with scopes
1962
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.xml$</span><span class='regexp_end'>/i</span></span>
1963
- <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='kw'>nil</span>
1964
- <span class='kw'>if</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
1965
- <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
1966
- <span class='kw'>else</span>
1967
- <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_dependent'>dependent</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
1968
- <span class='kw'>end</span>
1969
-
1970
- <span class='id identifier rubyid_add_pom_dependencies'>add_pom_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='rparen'>)</span>
1971
-
1972
- <span class='comment'># Add a dependency notation with scopes
1973
- </span> <span class='kw'>else</span>
1974
- <span class='id identifier rubyid_add_notation_dependency'>add_notation_dependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
1975
- <span class='kw'>end</span>
1976
-
1977
- <span class='kw'>elsif</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span>
1978
-
1979
- <span class='comment'># Add pom dependencies with default scopes
1980
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_dependent'>dependent</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.xml$</span><span class='regexp_end'>/i</span></span>
1981
- <span class='id identifier rubyid_add_pom_dependencies'>add_pom_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependent'>dependent</span> <span class='rparen'>)</span>
1982
-
1983
- <span class='comment'># Add a dependency notation with compile scope
1984
- </span> <span class='kw'>else</span>
1985
- <span class='id identifier rubyid_add_notation_dependency'>add_notation_dependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependent'>dependent</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>compile</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span>
1986
- <span class='kw'>end</span>
1987
-
1988
- <span class='comment'># Add an Aether dependency
1989
- </span> <span class='kw'>else</span>
1990
- <span class='id identifier rubyid_add_dependency'>add_dependency</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependent'>dependent</span> <span class='rparen'>)</span>
1991
- <span class='kw'>end</span>
1992
- <span class='kw'>end</span>
1993
- <span class='kw'>end</span></pre>
1994
- </td>
1995
- </tr>
1996
- </table>
1997
- </div>
1998
-
1999
- <div class="method_details ">
2000
- <h3 class="signature " id="dependencies_classpath-instance_method">
2001
-
2002
- - (<tt>String</tt>) <strong>dependencies_classpath</strong>
2003
-
2004
-
2005
-
2006
-
2007
-
2008
- </h3><div class="docstring">
2009
- <div class="discussion">
2010
-
2011
- <p>Convert dependencies to Classpath friendly string</p>
2012
-
2013
-
2014
- </div>
2015
- </div>
2016
- <div class="tags">
2017
-
2018
- <p class="tag_title">Returns:</p>
2019
- <ul class="return">
2020
-
2021
- <li>
2022
-
2023
-
2024
- <span class='type'>(<tt>String</tt>)</span>
2025
-
2026
-
2027
-
2028
- </li>
2029
-
2030
- </ul>
2031
-
2032
- </div><table class="source_code">
2033
- <tr>
2034
- <td>
2035
- <pre class="lines">
2036
-
2037
-
2038
- 274
2039
- 275
2040
- 276</pre>
2041
- </td>
2042
- <td>
2043
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 274</span>
2044
-
2045
- <span class='kw'>def</span> <span class='id identifier rubyid_dependencies_classpath'>dependencies_classpath</span><span class='lparen'>(</span><span class='rparen'>)</span>
2046
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getResolvedClassPath'>getResolvedClassPath</span><span class='lparen'>(</span><span class='rparen'>)</span>
2047
- <span class='kw'>end</span></pre>
2048
- </td>
2049
- </tr>
2050
- </table>
2051
- </div>
2052
-
2053
- <div class="method_details ">
2054
- <h3 class="signature " id="dependencies_notation-instance_method">
2055
-
2056
- - (<tt>Array&lt;String&gt;</tt>) <strong>dependencies_notation</strong>
2057
-
2058
-
2059
-
2060
-
2061
-
2062
- </h3><div class="docstring">
2063
- <div class="discussion">
2064
-
2065
- <p>Get array of dependencies as notation</p>
2066
-
2067
-
2068
- </div>
2069
- </div>
2070
- <div class="tags">
2071
-
2072
- <p class="tag_title">Returns:</p>
2073
- <ul class="return">
2074
-
2075
- <li>
2076
-
2077
-
2078
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2079
-
2080
-
2081
-
2082
- &mdash;
2083
- <div class='inline'>
2084
- <p>of notations</p>
2085
- </div>
2086
-
2087
- </li>
2088
-
2089
- </ul>
2090
-
2091
- <p class="tag_title">See Also:</p>
2092
- <ul class="see">
2093
-
2094
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
2095
-
2096
- </ul>
2097
-
2098
- </div><table class="source_code">
2099
- <tr>
2100
- <td>
2101
- <pre class="lines">
2102
-
2103
-
2104
- 260
2105
- 261
2106
- 262</pre>
2107
- </td>
2108
- <td>
2109
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 260</span>
2110
-
2111
- <span class='kw'>def</span> <span class='id identifier rubyid_dependencies_notation'>dependencies_notation</span>
2112
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span><span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
2113
- <span class='kw'>end</span></pre>
2114
- </td>
2115
- </tr>
2116
- </table>
2117
- </div>
2118
-
2119
- <div class="method_details ">
2120
- <h3 class="signature " id="dependencies_path-instance_method">
2121
-
2122
- - (<tt>Array&lt;Hash&gt;</tt>) <strong>dependencies_path</strong>
2123
-
2124
-
2125
-
2126
-
2127
-
2128
- </h3><div class="docstring">
2129
- <div class="discussion">
2130
-
2131
- <p>Hash of dependency paths</p>
2132
-
2133
-
2134
- </div>
2135
- </div>
2136
- <div class="tags">
2137
-
2138
- <p class="tag_title">Returns:</p>
2139
- <ul class="return">
2140
-
2141
- <li>
2142
-
2143
-
2144
- <span class='type'>(<tt>Array&lt;Hash&gt;</tt>)</span>
2145
-
2146
-
2147
-
2148
- &mdash;
2149
- <div class='inline'>
2150
- <p>of { notation =&gt; path }</p>
2151
- </div>
2152
-
2153
- </li>
2154
-
2155
- </ul>
2156
-
2157
- </div><table class="source_code">
2158
- <tr>
2159
- <td>
2160
- <pre class="lines">
2161
-
2162
-
2163
- 267
2164
- 268
2165
- 269</pre>
2166
- </td>
2167
- <td>
2168
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 267</span>
2169
-
2170
- <span class='kw'>def</span> <span class='id identifier rubyid_dependencies_path'>dependencies_path</span>
2171
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_hash'>convert_to_ruby_hash</span><span class='lparen'>(</span> <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesPath'>getDependenciesPath</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
2172
- <span class='kw'>end</span></pre>
2173
- </td>
2174
- </tr>
2175
- </table>
2176
- </div>
2177
-
2178
- <div class="method_details ">
2179
- <h3 class="signature " id="deploy_artifact-instance_method">
2180
-
2181
- - (<tt>Object</tt>) <strong>deploy_artifact</strong>(notation, file_path, url, opts = {})
2182
-
2183
-
2184
-
2185
-
2186
-
2187
- </h3><div class="docstring">
2188
- <div class="discussion">
2189
-
2190
- <p>Deploy artifact to remote repo url</p>
2191
-
2192
-
2193
- </div>
2194
- </div>
2195
- <div class="tags">
2196
- <p class="tag_title">Parameters:</p>
2197
- <ul class="param">
2198
-
2199
- <li>
2200
-
2201
- <span class='name'>notation</span>
2202
-
2203
-
2204
- <span class='type'>(<tt>String</tt>)</span>
2205
-
2206
-
2207
-
2208
- </li>
2209
-
2210
- <li>
2211
-
2212
- <span class='name'>file_path</span>
2213
-
2214
-
2215
- <span class='type'>(<tt>String</tt>)</span>
2216
-
2217
-
2218
-
2219
- &mdash;
2220
- <div class='inline'>
2221
- <p>to artifact to deploy</p>
2222
- </div>
2223
-
2224
- </li>
2225
-
2226
- <li>
2227
-
2228
- <span class='name'>url</span>
2229
-
2230
-
2231
- <span class='type'>(<tt>String</tt>)</span>
2232
-
2233
-
2234
-
2235
- &mdash;
2236
- <div class='inline'>
2237
- <p>to deploy to</p>
2238
- </div>
2239
-
2240
- </li>
2241
-
2242
- <li>
2243
-
2244
- <span class='name'>opts</span>
2245
-
2246
-
2247
- <span class='type'>(<tt>Hash</tt>)</span>
2248
-
2249
-
2250
- <em class="default">(defaults to: <tt>{}</tt>)</em>
2251
-
2252
-
2253
- </li>
2254
-
2255
- </ul>
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
-
2266
- <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
2267
- <ul class="option">
2268
-
2269
- <li>
2270
- <span class="name">:pom_path</span>
2271
- <span class="type">(<tt>String</tt>)</span>
2272
- <span class="default">
2273
-
2274
- </span>
2275
-
2276
- &mdash; <div class='inline'>
2277
- <p>path to pom.xml</p>
2278
- </div>
2279
-
2280
- </li>
2281
-
2282
- <li>
2283
- <span class="name">:username</span>
2284
- <span class="type">(<tt>String</tt>)</span>
2285
- <span class="default">
2286
-
2287
- </span>
2288
-
2289
- &mdash; <div class='inline'>
2290
- <p>for optional auth</p>
2291
- </div>
2292
-
2293
- </li>
2294
-
2295
- <li>
2296
- <span class="name">:password</span>
2297
- <span class="type">(<tt>String</tt>)</span>
2298
- <span class="default">
2299
-
2300
- </span>
2301
-
2302
- &mdash; <div class='inline'>
2303
- <p>for optional auth</p>
2304
- </div>
2305
-
2306
- </li>
2307
-
2308
- <li>
2309
- <span class="name">:pub_key</span>
2310
- <span class="type">(<tt>String</tt>)</span>
2311
- <span class="default">
2312
-
2313
- </span>
2314
-
2315
- &mdash; <div class='inline'>
2316
- <p>for optional auth</p>
2317
- </div>
2318
-
2319
- </li>
2320
-
2321
- <li>
2322
- <span class="name">:pub_key_passphrase</span>
2323
- <span class="type">(<tt>String</tt>)</span>
2324
- <span class="default">
2325
-
2326
- </span>
2327
-
2328
- &mdash; <div class='inline'>
2329
- <p>for optional auth</p>
2330
- </div>
2331
-
2332
- </li>
2333
-
2334
- </ul>
2335
-
2336
-
2337
-
2338
- </div><table class="source_code">
2339
- <tr>
2340
- <td>
2341
- <pre class="lines">
2342
-
2343
-
2344
- 365
2345
- 366
2346
- 367
2347
- 368
2348
- 369
2349
- 370
2350
- 371
2351
- 372
2352
- 373
2353
- 374
2354
- 375
2355
- 376
2356
- 377
2357
- 378
2358
- 379
2359
- 380
2360
- 381
2361
- 382
2362
- 383</pre>
2363
- </td>
2364
- <td>
2365
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 365</span>
2366
-
2367
- <span class='kw'>def</span> <span class='id identifier rubyid_deploy_artifact'>deploy_artifact</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_file_path'>file_path</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='rparen'>)</span>
2368
- <span class='id identifier rubyid_artifact'>artifact</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>com.tobedevoured.naether.deploy.DeployArtifact</span><span class='tstring_end'>&quot;</span></span> <span class='rparen'>)</span>
2369
-
2370
- <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_setRemoteRepo'>setRemoteRepo</span><span class='lparen'>(</span> <span class='id identifier rubyid_url'>url</span> <span class='rparen'>)</span>
2371
- <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_setNotation'>setNotation</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span> <span class='rparen'>)</span>
2372
- <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_setFilePath'>setFilePath</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
2373
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pom_path</span><span class='rbracket'>]</span>
2374
- <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_setPomPath'>setPomPath</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pom_path</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
2375
- <span class='kw'>end</span>
2376
-
2377
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:username</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pub_key</span><span class='rbracket'>]</span>
2378
- <span class='id identifier rubyid_artifact'>artifact</span><span class='period'>.</span><span class='id identifier rubyid_setAuth'>setAuth</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:username</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pub_key</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pub_key_passphrase</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
2379
- <span class='kw'>end</span>
2380
- <span class='kw'>if</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
2381
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_deployArtifact'>deployArtifact</span><span class='lparen'>(</span><span class='id identifier rubyid_artifact'>artifact</span><span class='rparen'>)</span>
2382
- <span class='kw'>else</span>
2383
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid__invoke'>_invoke</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>deployArtifact</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Lcom.tobedevoured.naether.deploy.DeployArtifact;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_artifact'>artifact</span> <span class='rparen'>)</span>
2384
- <span class='kw'>end</span>
2385
- <span class='kw'>end</span></pre>
2386
- </td>
2387
- </tr>
2388
- </table>
2389
- </div>
2390
-
2391
- <div class="method_details ">
2392
- <h3 class="signature " id="download_artifacts-instance_method">
2393
-
2394
- - (<tt>Array&lt;String&gt;</tt>) <strong>download_artifacts</strong>(notations)
2395
-
2396
-
2397
-
2398
-
2399
-
2400
- </h3><div class="docstring">
2401
- <div class="discussion">
2402
-
2403
- <p>Download artifacts</p>
2404
-
2405
-
2406
- </div>
2407
- </div>
2408
- <div class="tags">
2409
- <p class="tag_title">Parameters:</p>
2410
- <ul class="param">
2411
-
2412
- <li>
2413
-
2414
- <span class='name'>notations</span>
2415
-
2416
-
2417
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2418
-
2419
-
2420
-
2421
- </li>
2422
-
2423
- </ul>
2424
-
2425
- <p class="tag_title">Returns:</p>
2426
- <ul class="return">
2427
-
2428
- <li>
2429
-
2430
-
2431
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2432
-
2433
-
2434
-
2435
- &mdash;
2436
- <div class='inline'>
2437
- <p>of paths of downloaded artifacts</p>
2438
- </div>
2439
-
2440
- </li>
2441
-
2442
- </ul>
2443
-
2444
- </div><table class="source_code">
2445
- <tr>
2446
- <td>
2447
- <pre class="lines">
2448
-
2449
-
2450
- 332
2451
- 333
2452
- 334
2453
- 335
2454
- 336
2455
- 337
2456
- 338
2457
- 339
2458
- 340
2459
- 341
2460
- 342
2461
- 343
2462
- 344
2463
- 345
2464
- 346
2465
- 347
2466
- 348
2467
- 349
2468
- 350
2469
- 351</pre>
2470
- </td>
2471
- <td>
2472
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 332</span>
2473
-
2474
- <span class='kw'>def</span> <span class='id identifier rubyid_download_artifacts'>download_artifacts</span><span class='lparen'>(</span> <span class='id identifier rubyid_notations'>notations</span> <span class='rparen'>)</span>
2475
- <span class='kw'>if</span><span class='lparen'>(</span> <span class='id identifier rubyid_notations'>notations</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span> <span class='rparen'>)</span>
2476
- <span class='id identifier rubyid_notations'>notations</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_notations'>notations</span><span class='rbracket'>]</span>
2477
- <span class='kw'>end</span>
2478
-
2479
- <span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='kw'>nil</span>
2480
- <span class='kw'>if</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
2481
- <span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_downloadArtifacts'>downloadArtifacts</span><span class='lparen'>(</span> <span class='id identifier rubyid_notations'>notations</span> <span class='rparen'>)</span>
2482
- <span class='kw'>else</span>
2483
- <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_java_list'>convert_to_java_list</span><span class='lparen'>(</span> <span class='id identifier rubyid_notations'>notations</span> <span class='rparen'>)</span>
2484
- <span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid__invoke'>_invoke</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>downloadArtifacts</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Ljava.util.List;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span><span class='rparen'>)</span>
2485
- <span class='kw'>end</span>
2486
-
2487
- <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
2488
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span><span class='id identifier rubyid_files'>files</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file'>file</span><span class='op'>|</span>
2489
- <span class='id identifier rubyid_paths'>paths</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_getAbsolutePath'>getAbsolutePath</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span>
2490
- <span class='kw'>end</span>
2491
-
2492
- <span class='id identifier rubyid_paths'>paths</span>
2493
- <span class='kw'>end</span></pre>
2494
- </td>
2495
- </tr>
2496
- </table>
2497
- </div>
2498
-
2499
- <div class="method_details ">
2500
- <h3 class="signature " id="install-instance_method">
2501
-
2502
- - (<tt>Object</tt>) <strong>install</strong>(notation, pom_path = nil, jar_path = nil)
2503
-
2504
-
2505
-
2506
-
2507
-
2508
- </h3><div class="docstring">
2509
- <div class="discussion">
2510
-
2511
- <p>Install artifact or pom to local repo, must specify pom_path and/or
2512
- jar_path</p>
2513
-
2514
-
2515
- </div>
2516
- </div>
2517
- <div class="tags">
2518
- <p class="tag_title">Parameters:</p>
2519
- <ul class="param">
2520
-
2521
- <li>
2522
-
2523
- <span class='name'>notation</span>
2524
-
2525
-
2526
- <span class='type'>(<tt>String</tt>)</span>
2527
-
2528
-
2529
-
2530
- </li>
2531
-
2532
- <li>
2533
-
2534
- <span class='name'>pom_path</span>
2535
-
2536
-
2537
- <span class='type'>(<tt>String</tt>)</span>
2538
-
2539
-
2540
- <em class="default">(defaults to: <tt>nil</tt>)</em>
2541
-
2542
-
2543
- </li>
2544
-
2545
- <li>
2546
-
2547
- <span class='name'>jar_path</span>
2548
-
2549
-
2550
- <span class='type'>(<tt>String</tt>)</span>
2551
-
2552
-
2553
- <em class="default">(defaults to: <tt>nil</tt>)</em>
2554
-
2555
-
2556
- </li>
2557
-
2558
- </ul>
2559
-
2560
-
2561
- </div><table class="source_code">
2562
- <tr>
2563
- <td>
2564
- <pre class="lines">
2565
-
2566
-
2567
- 390
2568
- 391
2569
- 392</pre>
2570
- </td>
2571
- <td>
2572
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 390</span>
2573
-
2574
- <span class='kw'>def</span> <span class='id identifier rubyid_install'>install</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_jar_path'>jar_path</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
2575
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_install'>install</span><span class='lparen'>(</span><span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_pom_path'>pom_path</span><span class='comma'>,</span> <span class='id identifier rubyid_jar_path'>jar_path</span><span class='rparen'>)</span>
2576
- <span class='kw'>end</span></pre>
2577
- </td>
2578
- </tr>
2579
- </table>
2580
- </div>
2581
-
2582
- <div class="method_details ">
2583
- <h3 class="signature " id="load_dependencies_to_classpath-instance_method">
2584
-
2585
- - (<tt>Object</tt>) <strong>load_dependencies_to_classpath</strong>
2586
-
2587
-
2588
-
2589
-
2590
-
2591
- </h3><div class="docstring">
2592
- <div class="discussion">
2593
-
2594
- <p>Load dependencies to Classpath</p>
2595
-
2596
-
2597
- </div>
2598
- </div>
2599
- <div class="tags">
2600
-
2601
-
2602
- </div><table class="source_code">
2603
- <tr>
2604
- <td>
2605
- <pre class="lines">
2606
-
2607
-
2608
- 279
2609
- 280
2610
- 281
2611
- 282
2612
- 283
2613
- 284</pre>
2614
- </td>
2615
- <td>
2616
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 279</span>
2617
-
2618
- <span class='kw'>def</span> <span class='id identifier rubyid_load_dependencies_to_classpath'>load_dependencies_to_classpath</span>
2619
- <span class='id identifier rubyid_jars'>jars</span> <span class='op'>=</span> <span class='id identifier rubyid_dependencies_classpath'>dependencies_classpath</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>:</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
2620
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_load_jars'>load_jars</span><span class='lparen'>(</span><span class='id identifier rubyid_jars'>jars</span><span class='rparen'>)</span>
2621
-
2622
- <span class='id identifier rubyid_jars'>jars</span>
2623
- <span class='kw'>end</span></pre>
2624
- </td>
2625
- </tr>
2626
- </table>
2627
- </div>
2628
-
2629
- <div class="method_details ">
2630
- <h3 class="signature " id="local_repo_path-instance_method">
2631
-
2632
- - (<tt>String</tt>) <strong>local_repo_path</strong>
2633
-
2634
-
2635
-
2636
-
2637
-
2638
- </h3><div class="docstring">
2639
- <div class="discussion">
2640
-
2641
- <p>Path to local maven repo</p>
2642
-
2643
-
2644
- </div>
2645
- </div>
2646
- <div class="tags">
2647
-
2648
- <p class="tag_title">Returns:</p>
2649
- <ul class="return">
2650
-
2651
- <li>
2652
-
2653
-
2654
- <span class='type'>(<tt>String</tt>)</span>
2655
-
2656
-
2657
-
2658
- &mdash;
2659
- <div class='inline'>
2660
- <p>path to local repo</p>
2661
- </div>
2662
-
2663
- </li>
2664
-
2665
- </ul>
2666
-
2667
- </div><table class="source_code">
2668
- <tr>
2669
- <td>
2670
- <pre class="lines">
2671
-
2672
-
2673
- 98
2674
- 99
2675
- 100</pre>
2676
- </td>
2677
- <td>
2678
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 98</span>
2679
-
2680
- <span class='kw'>def</span> <span class='id identifier rubyid_local_repo_path'>local_repo_path</span>
2681
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getLocalRepoPath'>getLocalRepoPath</span><span class='lparen'>(</span><span class='rparen'>)</span>
2682
- <span class='kw'>end</span></pre>
2683
- </td>
2684
- </tr>
2685
- </table>
2686
- </div>
2687
-
2688
- <div class="method_details ">
2689
- <h3 class="signature " id="local_repo_path=-instance_method">
2690
-
2691
- - (<tt>Object</tt>) <strong>local_repo_path=</strong>(path)
2692
-
2693
-
2694
-
2695
-
2696
-
2697
- </h3><div class="docstring">
2698
- <div class="discussion">
2699
-
2700
- <p>Set path to local maven repo</p>
2701
-
2702
-
2703
- </div>
2704
- </div>
2705
- <div class="tags">
2706
- <p class="tag_title">Parameters:</p>
2707
- <ul class="param">
2708
-
2709
- <li>
2710
-
2711
- <span class='name'>path</span>
2712
-
2713
-
2714
- <span class='type'>(<tt>String</tt>)</span>
2715
-
2716
-
2717
-
2718
- &mdash;
2719
- <div class='inline'>
2720
- <p>local repo</p>
2721
- </div>
2722
-
2723
- </li>
2724
-
2725
- </ul>
2726
-
2727
-
2728
- </div><table class="source_code">
2729
- <tr>
2730
- <td>
2731
- <pre class="lines">
2732
-
2733
-
2734
- 105
2735
- 106
2736
- 107</pre>
2737
- </td>
2738
- <td>
2739
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 105</span>
2740
-
2741
- <span class='kw'>def</span> <span class='id identifier rubyid_local_repo_path='>local_repo_path=</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
2742
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_setLocalRepoPath'>setLocalRepoPath</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
2743
- <span class='kw'>end</span></pre>
2744
- </td>
2745
- </tr>
2746
- </table>
2747
- </div>
2748
-
2749
- <div class="method_details ">
2750
- <h3 class="signature " id="remote_repositories-instance_method">
2751
-
2752
- - (<tt>Array</tt>) <strong>remote_repositories</strong>
2753
-
2754
-
2755
-
2756
-
2757
-
2758
- </h3><div class="docstring">
2759
- <div class="discussion">
2760
-
2761
- <p>Get remote repositories</p>
2762
-
2763
-
2764
- </div>
2765
- </div>
2766
- <div class="tags">
2767
-
2768
- <p class="tag_title">Returns:</p>
2769
- <ul class="return">
2770
-
2771
- <li>
2772
-
2773
-
2774
- <span class='type'>(<tt>Array</tt>)</span>
2775
-
2776
-
2777
-
2778
- &mdash;
2779
- <div class='inline'>
2780
- <p>of remote repos</p>
2781
- </div>
2782
-
2783
- </li>
2784
-
2785
- </ul>
2786
-
2787
- </div><table class="source_code">
2788
- <tr>
2789
- <td>
2790
- <pre class="lines">
2791
-
2792
-
2793
- 84
2794
- 85
2795
- 86</pre>
2796
- </td>
2797
- <td>
2798
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 84</span>
2799
-
2800
- <span class='kw'>def</span> <span class='id identifier rubyid_remote_repositories'>remote_repositories</span>
2801
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span><span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getRemoteRepositories'>getRemoteRepositories</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='rparen'>)</span>
2802
- <span class='kw'>end</span></pre>
2803
- </td>
2804
- </tr>
2805
- </table>
2806
- </div>
2807
-
2808
- <div class="method_details ">
2809
- <h3 class="signature " id="remote_repository_urls-instance_method">
2810
-
2811
- - (<tt>Array&lt;String&gt;</tt>) <strong>remote_repository_urls</strong>
2812
-
2813
-
2814
-
2815
-
2816
-
2817
- </h3><div class="docstring">
2818
- <div class="discussion">
2819
-
2820
- <p>Get remote repositories as urls</p>
2821
-
2822
-
2823
- </div>
2824
- </div>
2825
- <div class="tags">
2826
-
2827
- <p class="tag_title">Returns:</p>
2828
- <ul class="return">
2829
-
2830
- <li>
2831
-
2832
-
2833
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2834
-
2835
-
2836
-
2837
- &mdash;
2838
- <div class='inline'>
2839
- <p>of String urls</p>
2840
- </div>
2841
-
2842
- </li>
2843
-
2844
- </ul>
2845
-
2846
- </div><table class="source_code">
2847
- <tr>
2848
- <td>
2849
- <pre class="lines">
2850
-
2851
-
2852
- 91
2853
- 92
2854
- 93</pre>
2855
- </td>
2856
- <td>
2857
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 91</span>
2858
-
2859
- <span class='kw'>def</span> <span class='id identifier rubyid_remote_repository_urls'>remote_repository_urls</span>
2860
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span><span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_getRemoteRepositoryUrls'>getRemoteRepositoryUrls</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
2861
- <span class='kw'>end</span></pre>
2862
- </td>
2863
- </tr>
2864
- </table>
2865
- </div>
2866
-
2867
- <div class="method_details ">
2868
- <h3 class="signature " id="resolve_dependencies-instance_method">
2869
-
2870
- - (<tt>Array&lt;String&gt;</tt>) <strong>resolve_dependencies</strong>(download_artifacts = true, properties = nil)
2871
-
2872
-
2873
-
2874
-
2875
-
2876
- </h3><div class="docstring">
2877
- <div class="discussion">
2878
-
2879
- <p>Resolve dependencies</p>
2880
-
2881
-
2882
- </div>
2883
- </div>
2884
- <div class="tags">
2885
-
2886
- <p class="tag_title">Returns:</p>
2887
- <ul class="return">
2888
-
2889
- <li>
2890
-
2891
-
2892
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
2893
-
2894
-
2895
-
2896
- &mdash;
2897
- <div class='inline'>
2898
- <p>of notations</p>
2899
- </div>
2900
-
2901
- </li>
2902
-
2903
- </ul>
2904
-
2905
- <p class="tag_title">See Also:</p>
2906
- <ul class="see">
2907
-
2908
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
2909
-
2910
- </ul>
2911
-
2912
- </div><table class="source_code">
2913
- <tr>
2914
- <td>
2915
- <pre class="lines">
2916
-
2917
-
2918
- 290
2919
- 291
2920
- 292
2921
- 293
2922
- 294
2923
- 295
2924
- 296
2925
- 297
2926
- 298
2927
- 299
2928
- 300
2929
- 301
2930
- 302</pre>
2931
- </td>
2932
- <td>
2933
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 290</span>
2934
-
2935
- <span class='kw'>def</span> <span class='id identifier rubyid_resolve_dependencies'>resolve_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_download_artifacts'>download_artifacts</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
2936
-
2937
- <span class='kw'>if</span> <span class='id identifier rubyid_properties'>properties</span>
2938
- <span class='comment'># Convert to HashMap
2939
- </span> <span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>java.util.HashMap</span><span class='tstring_end'>&quot;</span></span> <span class='rparen'>)</span>
2940
- <span class='id identifier rubyid_properties'>properties</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
2941
- <span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span> <span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span> <span class='rparen'>)</span>
2942
- <span class='kw'>end</span>
2943
- <span class='kw'>end</span>
2944
-
2945
- <span class='ivar'>@resolver</span><span class='period'>.</span><span class='id identifier rubyid_resolveDependencies'>resolveDependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_download_artifacts'>download_artifacts</span><span class='comma'>,</span> <span class='id identifier rubyid_map'>map</span> <span class='rparen'>)</span><span class='semicolon'>;</span>
2946
- <span class='id identifier rubyid_dependencies_notation'>dependencies_notation</span>
2947
- <span class='kw'>end</span></pre>
2948
- </td>
2949
- </tr>
2950
- </table>
2951
- </div>
2952
-
2953
- <div class="method_details ">
2954
- <h3 class="signature " id="set_log_level-instance_method">
2955
-
2956
- - (<tt>Object</tt>) <strong>set_log_level</strong>(level)
2957
-
2958
-
2959
-
2960
-
2961
-
2962
- </h3><div class="docstring">
2963
- <div class="discussion">
2964
-
2965
- <p>Set Log level for Naether Java logging</p>
2966
-
2967
-
2968
- </div>
2969
- </div>
2970
- <div class="tags">
2971
- <p class="tag_title">Parameters:</p>
2972
- <ul class="param">
2973
-
2974
- <li>
2975
-
2976
- <span class='name'>level</span>
2977
-
2978
-
2979
- <span class='type'>(<tt>String</tt>)</span>
2980
-
2981
-
2982
-
2983
- &mdash;
2984
- <div class='inline'>
2985
- <p>to debug, info, warn, or error</p>
2986
- </div>
2987
-
2988
- </li>
2989
-
2990
- </ul>
2991
-
2992
-
2993
- </div><table class="source_code">
2994
- <tr>
2995
- <td>
2996
- <pre class="lines">
2997
-
2998
-
2999
- 397
3000
- 398
3001
- 399</pre>
3002
- </td>
3003
- <td>
3004
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 397</span>
3005
-
3006
- <span class='kw'>def</span> <span class='id identifier rubyid_set_log_level'>set_log_level</span><span class='lparen'>(</span> <span class='id identifier rubyid_level'>level</span> <span class='rparen'>)</span>
3007
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_exec_static_method'>exec_static_method</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>com.tobedevoured.naether.util.LogUtil</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>changeLevel</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>com.tobedevoured</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_level'>level</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
3008
- <span class='kw'>end</span></pre>
3009
- </td>
3010
- </tr>
3011
- </table>
3012
- </div>
3013
-
3014
- <div class="method_details ">
3015
- <h3 class="signature " id="to_local_paths-instance_method">
3016
-
3017
- - (<tt>Array&lt;String&gt;</tt>) <strong>to_local_paths</strong>(notations)
3018
-
3019
-
3020
-
3021
-
3022
-
3023
- </h3><div class="docstring">
3024
- <div class="discussion">
3025
-
3026
- <p>Convert notations to local paths of artifacts</p>
3027
-
3028
-
3029
- </div>
3030
- </div>
3031
- <div class="tags">
3032
- <p class="tag_title">Parameters:</p>
3033
- <ul class="param">
3034
-
3035
- <li>
3036
-
3037
- <span class='name'>notations</span>
3038
-
3039
-
3040
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
3041
-
3042
-
3043
-
3044
- </li>
3045
-
3046
- </ul>
3047
-
3048
- <p class="tag_title">Returns:</p>
3049
- <ul class="return">
3050
-
3051
- <li>
3052
-
3053
-
3054
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
3055
-
3056
-
3057
-
3058
- &mdash;
3059
- <div class='inline'>
3060
- <p>of paths to artifacts</p>
3061
- </div>
3062
-
3063
- </li>
3064
-
3065
- </ul>
3066
-
3067
- <p class="tag_title">See Also:</p>
3068
- <ul class="see">
3069
-
3070
- <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
3071
-
3072
- </ul>
3073
-
3074
- </div><table class="source_code">
3075
- <tr>
3076
- <td>
3077
- <pre class="lines">
3078
-
3079
-
3080
- 309
3081
- 310
3082
- 311
3083
- 312
3084
- 313
3085
- 314
3086
- 315
3087
- 316
3088
- 317
3089
- 318
3090
- 319
3091
- 320
3092
- 321
3093
- 322
3094
- 323
3095
- 324
3096
- 325
3097
- 326</pre>
3098
- </td>
3099
- <td>
3100
- <pre class="code"><span class="info file"># File 'lib/naether.rb', line 309</span>
3101
-
3102
- <span class='kw'>def</span> <span class='id identifier rubyid_to_local_paths'>to_local_paths</span><span class='lparen'>(</span> <span class='id identifier rubyid_notations'>notations</span> <span class='rparen'>)</span>
3103
- <span class='kw'>if</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
3104
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span>
3105
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_exec_static_method'>exec_static_method</span><span class='lparen'>(</span>
3106
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>com.tobedevoured.naether.util.Notation</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
3107
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>getLocalPaths</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
3108
- <span class='lbracket'>[</span><span class='id identifier rubyid_local_repo_path'>local_repo_path</span><span class='comma'>,</span> <span class='id identifier rubyid_notations'>notations</span> <span class='rbracket'>]</span><span class='comma'>,</span>
3109
- <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java.lang.String</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java.util.List</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
3110
- <span class='kw'>else</span>
3111
- <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_exec_static_method'>exec_static_method</span><span class='lparen'>(</span>
3112
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>com.tobedevoured.naether.util.Notation</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
3113
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>getLocalPaths</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
3114
- <span class='lbracket'>[</span><span class='id identifier rubyid_local_repo_path'>local_repo_path</span><span class='comma'>,</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_java_list'>convert_to_java_list</span><span class='lparen'>(</span><span class='id identifier rubyid_notations'>notations</span><span class='rparen'>)</span> <span class='rbracket'>]</span><span class='comma'>,</span>
3115
- <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java.lang.String</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java.util.List</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='rparen'>)</span>
3116
- <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span> <span class='id identifier rubyid_paths'>paths</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
3117
- <span class='kw'>end</span>
3118
-
3119
- <span class='kw'>end</span></pre>
3120
- </td>
3121
- </tr>
3122
- </table>
3123
- </div>
3124
-
3125
- </div>
3126
-
3127
- </div>
3128
-
3129
- <div id="footer">
3130
- Generated on Wed Sep 12 14:18:12 2012 by
3131
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3132
- 0.8.2.1 (ruby-1.9.3).
3133
- </div>
3134
-
3135
- </body>
3136
- </html>