naether 0.13.8-java → 0.14.0-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1391 +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::Maven
8
-
9
- &mdash; Documentation by YARD 0.8.7.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" 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 (M)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span></span>
36
- &raquo;
37
- <span class="title">Maven</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::Maven
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::Maven</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/maven.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>Helper for interacting with a Maven POM</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
- <p class="tag_title">Author:</p>
113
- <ul class="author">
114
-
115
- <li>
116
-
117
-
118
-
119
-
120
-
121
- <div class='inline'>
122
- <p>Michael Guymon</p>
123
- </div>
124
-
125
- </li>
126
-
127
- </ul>
128
-
129
- </div>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- <h2>
138
- Class Method Summary
139
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
140
- </h2>
141
-
142
- <ul class="summary">
143
-
144
- <li class="public ">
145
- <span class="summary_signature">
146
-
147
- <a href="#create_from_notation-class_method" title="create_from_notation (class method)">+ (Naether::Maven) <strong>create_from_notation</strong>(notation) </a>
148
-
149
-
150
-
151
- </span>
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <span class="summary_desc"><div class='inline'>
162
- <p>Create an instance based on notation.</p>
163
- </div></span>
164
-
165
- </li>
166
-
167
-
168
- <li class="public ">
169
- <span class="summary_signature">
170
-
171
- <a href="#create_from_pom-class_method" title="create_from_pom (class method)">+ (Naether::Maven) <strong>create_from_pom</strong>(pom_path) </a>
172
-
173
-
174
-
175
- </span>
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
- <span class="summary_desc"><div class='inline'>
186
- <p>Create an instance from a POM.</p>
187
- </div></span>
188
-
189
- </li>
190
-
191
-
192
- </ul>
193
-
194
- <h2>
195
- Instance Method Summary
196
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
197
- </h2>
198
-
199
- <ul class="summary">
200
-
201
- <li class="public ">
202
- <span class="summary_signature">
203
-
204
- <a href="#add_dependency-instance_method" title="#add_dependency (instance method)">- (Object) <strong>add_dependency</strong>(notation, scope = nil) </a>
205
-
206
-
207
-
208
- </span>
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
- <span class="summary_desc"><div class='inline'>
219
- <p>Add dependency by scope.</p>
220
- </div></span>
221
-
222
- </li>
223
-
224
-
225
- <li class="public ">
226
- <span class="summary_signature">
227
-
228
- <a href="#build_pom-instance_method" title="#build_pom (instance method)">- (String) <strong>build_pom</strong> </a>
229
-
230
-
231
-
232
- </span>
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
- <span class="summary_desc"><div class='inline'>
243
- <p>Create the XML for a Maven Pom.</p>
244
- </div></span>
245
-
246
- </li>
247
-
248
-
249
- <li class="public ">
250
- <span class="summary_signature">
251
-
252
- <a href="#dependencies-instance_method" title="#dependencies (instance method)">- (Object) <strong>dependencies</strong>(scopes = nil) </a>
253
-
254
-
255
-
256
- </span>
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
- <span class="summary_desc"><div class='inline'>
267
- <p>Get dependences for Project as notations.</p>
268
- </div></span>
269
-
270
- </li>
271
-
272
-
273
- <li class="public ">
274
- <span class="summary_signature">
275
-
276
- <a href="#dependencies%3D-instance_method" title="#dependencies= (instance method)">- (Object) <strong>dependencies=</strong>(dependencies) </a>
277
-
278
-
279
-
280
- </span>
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
- <span class="summary_desc"><div class='inline'>
291
- <p>Set dependencies.</p>
292
- </div></span>
293
-
294
- </li>
295
-
296
-
297
- <li class="public ">
298
- <span class="summary_signature">
299
-
300
- <a href="#final_name-instance_method" title="#final_name (instance method)">- (Object) <strong>final_name</strong> </a>
301
-
302
-
303
-
304
- </span>
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
- <span class="summary_desc"><div class='inline'></div></span>
315
-
316
- </li>
317
-
318
-
319
- <li class="public ">
320
- <span class="summary_signature">
321
-
322
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Maven) <strong>initialize</strong>(pom_path = nil) </a>
323
-
324
-
325
-
326
- </span>
327
-
328
-
329
- <span class="note title constructor">constructor</span>
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
- <span class="summary_desc"><div class='inline'>
339
- <p>Create new instance.</p>
340
- </div></span>
341
-
342
- </li>
343
-
344
-
345
- <li class="public ">
346
- <span class="summary_signature">
347
-
348
- <a href="#invoke-instance_method" title="#invoke (instance method)">- (Object) <strong>invoke</strong>(*opts) </a>
349
-
350
-
351
-
352
- </span>
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
- <span class="summary_desc"><div class='inline'>
363
- <p>Invoke a Maven goal.</p>
364
- </div></span>
365
-
366
- </li>
367
-
368
-
369
- <li class="public ">
370
- <span class="summary_signature">
371
-
372
- <a href="#load_naether-instance_method" title="#load_naether (instance method)">- (Object) <strong>load_naether</strong>(naether) </a>
373
-
374
-
375
-
376
- </span>
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
- <span class="summary_desc"><div class='inline'>
387
- <p>Load dependencies and remote repo from a <span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span> instance.</p>
388
- </div></span>
389
-
390
- </li>
391
-
392
-
393
- <li class="public ">
394
- <span class="summary_signature">
395
-
396
- <a href="#notation%3D-instance_method" title="#notation= (instance method)">- (Object) <strong>notation=</strong>(notation) </a>
397
-
398
-
399
-
400
- </span>
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
- <span class="summary_desc"><div class='inline'>
411
- <p>Set the Notation for this Project.</p>
412
- </div></span>
413
-
414
- </li>
415
-
416
-
417
- <li class="public ">
418
- <span class="summary_signature">
419
-
420
- <a href="#repositories%3D-instance_method" title="#repositories= (instance method)">- (Object) <strong>repositories=</strong>(repositories) </a>
421
-
422
-
423
-
424
- </span>
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
- <span class="summary_desc"><div class='inline'>
435
- <p>Set repositories.</p>
436
- </div></span>
437
-
438
- </li>
439
-
440
-
441
- <li class="public ">
442
- <span class="summary_signature">
443
-
444
- <a href="#version-instance_method" title="#version (instance method)">- (Object) <strong>version</strong> </a>
445
-
446
-
447
-
448
- </span>
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
- <span class="summary_desc"><div class='inline'>
459
- <p>Get the version.</p>
460
- </div></span>
461
-
462
- </li>
463
-
464
-
465
- <li class="public ">
466
- <span class="summary_signature">
467
-
468
- <a href="#write_pom-instance_method" title="#write_pom (instance method)">- (Object) <strong>write_pom</strong>(file_path) </a>
469
-
470
-
471
-
472
- </span>
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
- <span class="summary_desc"><div class='inline'>
483
- <p>Write Maven Pom.</p>
484
- </div></span>
485
-
486
- </li>
487
-
488
-
489
- </ul>
490
-
491
-
492
- <div id="constructor_details" class="method_details_list">
493
- <h2>Constructor Details</h2>
494
-
495
- <div class="method_details first">
496
- <h3 class="signature first" id="initialize-instance_method">
497
-
498
- - (<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Maven</a></span></tt>) <strong>initialize</strong>(pom_path = nil)
499
-
500
-
501
-
502
-
503
-
504
- </h3><div class="docstring">
505
- <div class="discussion">
506
-
507
- <p>Create new instance</p>
508
-
509
-
510
- </div>
511
- </div>
512
- <div class="tags">
513
-
514
-
515
- </div><table class="source_code">
516
- <tr>
517
- <td>
518
- <pre class="lines">
519
-
520
-
521
- 51
522
- 52
523
- 53
524
- 54
525
- 55
526
- 56
527
- 57
528
- 58</pre>
529
- </td>
530
- <td>
531
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 51</span>
532
-
533
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pom_path'>pom_path</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
534
- <span class='kw'>if</span> <span class='id identifier rubyid_pom_path'>pom_path</span>
535
- <span class='ivar'>@project</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.maven.Project</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='rparen'>)</span>
536
- <span class='kw'>else</span>
537
- <span class='ivar'>@project</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.maven.Project</span><span class='tstring_end'>&quot;</span></span> <span class='rparen'>)</span>
538
- <span class='kw'>end</span>
539
-
540
- <span class='kw'>end</span></pre>
541
- </td>
542
- </tr>
543
- </table>
544
- </div>
545
-
546
- </div>
547
-
548
-
549
- <div id="class_method_details" class="method_details_list">
550
- <h2>Class Method Details</h2>
551
-
552
-
553
- <div class="method_details first">
554
- <h3 class="signature first" id="create_from_notation-class_method">
555
-
556
- + (<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>) <strong>create_from_notation</strong>(notation)
557
-
558
-
559
-
560
-
561
-
562
- </h3><div class="docstring">
563
- <div class="discussion">
564
-
565
- <p>Create an instance based on notation</p>
566
-
567
-
568
- </div>
569
- </div>
570
- <div class="tags">
571
- <p class="tag_title">Parameters:</p>
572
- <ul class="param">
573
-
574
- <li>
575
-
576
- <span class='name'>notation</span>
577
-
578
-
579
- <span class='type'>(<tt>String</tt>)</span>
580
-
581
-
582
-
583
- </li>
584
-
585
- </ul>
586
-
587
- <p class="tag_title">Returns:</p>
588
- <ul class="return">
589
-
590
- <li>
591
-
592
-
593
- <span class='type'>(<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>)</span>
594
-
595
-
596
-
597
- </li>
598
-
599
- </ul>
600
-
601
- <p class="tag_title">See Also:</p>
602
- <ul class="see">
603
-
604
- <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>
605
-
606
- </ul>
607
-
608
- </div><table class="source_code">
609
- <tr>
610
- <td>
611
- <pre class="lines">
612
-
613
-
614
- 41
615
- 42
616
- 43
617
- 44
618
- 45</pre>
619
- </td>
620
- <td>
621
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 41</span>
622
-
623
- <span class='kw'>def</span> <span class='id identifier rubyid_create_from_notation'>create_from_notation</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span> <span class='rparen'>)</span>
624
- <span class='id identifier rubyid_maven'>maven</span> <span class='op'>=</span> <span class='const'>Maven</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
625
- <span class='id identifier rubyid_maven'>maven</span><span class='period'>.</span><span class='id identifier rubyid_notation'>notation</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span>
626
- <span class='id identifier rubyid_maven'>maven</span>
627
- <span class='kw'>end</span></pre>
628
- </td>
629
- </tr>
630
- </table>
631
- </div>
632
-
633
- <div class="method_details ">
634
- <h3 class="signature " id="create_from_pom-class_method">
635
-
636
- + (<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>) <strong>create_from_pom</strong>(pom_path)
637
-
638
-
639
-
640
-
641
-
642
- </h3><div class="docstring">
643
- <div class="discussion">
644
-
645
- <p>Create an instance from a POM</p>
646
-
647
-
648
- </div>
649
- </div>
650
- <div class="tags">
651
- <p class="tag_title">Parameters:</p>
652
- <ul class="param">
653
-
654
- <li>
655
-
656
- <span class='name'>pom_path</span>
657
-
658
-
659
- <span class='type'>(<tt>String</tt>)</span>
660
-
661
-
662
-
663
- </li>
664
-
665
- </ul>
666
-
667
- <p class="tag_title">Returns:</p>
668
- <ul class="return">
669
-
670
- <li>
671
-
672
-
673
- <span class='type'>(<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>)</span>
674
-
675
-
676
-
677
- </li>
678
-
679
- </ul>
680
-
681
- </div><table class="source_code">
682
- <tr>
683
- <td>
684
- <pre class="lines">
685
-
686
-
687
- 32
688
- 33
689
- 34</pre>
690
- </td>
691
- <td>
692
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 32</span>
693
-
694
- <span class='kw'>def</span> <span class='id identifier rubyid_create_from_pom'>create_from_pom</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='rparen'>)</span>
695
- <span class='id identifier rubyid_maven'>maven</span> <span class='op'>=</span> <span class='const'>Maven</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='rparen'>)</span>
696
- <span class='kw'>end</span></pre>
697
- </td>
698
- </tr>
699
- </table>
700
- </div>
701
-
702
- </div>
703
-
704
- <div id="instance_method_details" class="method_details_list">
705
- <h2>Instance Method Details</h2>
706
-
707
-
708
- <div class="method_details first">
709
- <h3 class="signature first" id="add_dependency-instance_method">
710
-
711
- - (<tt>Object</tt>) <strong>add_dependency</strong>(notation, scope = nil)
712
-
713
-
714
-
715
-
716
-
717
- </h3><div class="docstring">
718
- <div class="discussion">
719
-
720
- <p>Add dependency by scope</p>
721
-
722
-
723
- </div>
724
- </div>
725
- <div class="tags">
726
- <p class="tag_title">Parameters:</p>
727
- <ul class="param">
728
-
729
- <li>
730
-
731
- <span class='name'>notation</span>
732
-
733
-
734
- <span class='type'>(<tt>String</tt>)</span>
735
-
736
-
737
-
738
- </li>
739
-
740
- <li>
741
-
742
- <span class='name'>scope</span>
743
-
744
-
745
- <span class='type'>(<tt>String</tt>)</span>
746
-
747
-
748
- <em class="default">(defaults to: <tt>nil</tt>)</em>
749
-
750
-
751
- </li>
752
-
753
- </ul>
754
-
755
-
756
- </div><table class="source_code">
757
- <tr>
758
- <td>
759
- <pre class="lines">
760
-
761
-
762
- 102
763
- 103
764
- 104</pre>
765
- </td>
766
- <td>
767
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 102</span>
768
-
769
- <span class='kw'>def</span> <span class='id identifier rubyid_add_dependency'>add_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='kw'>nil</span> <span class='rparen'>)</span>
770
- <span class='ivar'>@project</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>
771
- <span class='kw'>end</span></pre>
772
- </td>
773
- </tr>
774
- </table>
775
- </div>
776
-
777
- <div class="method_details ">
778
- <h3 class="signature " id="build_pom-instance_method">
779
-
780
- - (<tt>String</tt>) <strong>build_pom</strong>
781
-
782
-
783
-
784
-
785
-
786
- </h3><div class="docstring">
787
- <div class="discussion">
788
-
789
- <p>Create the XML for a Maven Pom</p>
790
-
791
-
792
- </div>
793
- </div>
794
- <div class="tags">
795
-
796
- <p class="tag_title">Returns:</p>
797
- <ul class="return">
798
-
799
- <li>
800
-
801
-
802
- <span class='type'>(<tt>String</tt>)</span>
803
-
804
-
805
-
806
- &mdash;
807
- <div class='inline'>
808
- <p>pom xml</p>
809
- </div>
810
-
811
- </li>
812
-
813
- </ul>
814
-
815
- </div><table class="source_code">
816
- <tr>
817
- <td>
818
- <pre class="lines">
819
-
820
-
821
- 137
822
- 138
823
- 139</pre>
824
- </td>
825
- <td>
826
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 137</span>
827
-
828
- <span class='kw'>def</span> <span class='id identifier rubyid_build_pom'>build_pom</span><span class='lparen'>(</span><span class='rparen'>)</span>
829
- <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_toXml'>toXml</span><span class='lparen'>(</span><span class='rparen'>)</span>
830
- <span class='kw'>end</span></pre>
831
- </td>
832
- </tr>
833
- </table>
834
- </div>
835
-
836
- <div class="method_details ">
837
- <h3 class="signature " id="dependencies-instance_method">
838
-
839
- - (<tt>Object</tt>) <strong>dependencies</strong>(scopes = nil)
840
-
841
-
842
-
843
-
844
-
845
- </h3><div class="docstring">
846
- <div class="discussion">
847
-
848
- <p>Get dependences for Project as notations</p>
849
-
850
-
851
- </div>
852
- </div>
853
- <div class="tags">
854
- <p class="tag_title">Parameters:</p>
855
- <ul class="param">
856
-
857
- <li>
858
-
859
- <span class='name'>scopes</span>
860
-
861
-
862
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
863
-
864
-
865
- <em class="default">(defaults to: <tt>nil</tt>)</em>
866
-
867
-
868
- &mdash;
869
- <div class='inline'>
870
- <p>valid options are compile,test,runtime</p>
871
- </div>
872
-
873
- </li>
874
-
875
- </ul>
876
-
877
-
878
- </div><table class="source_code">
879
- <tr>
880
- <td>
881
- <pre class="lines">
882
-
883
-
884
- 71
885
- 72
886
- 73
887
- 74
888
- 75
889
- 76
890
- 77
891
- 78
892
- 79
893
- 80
894
- 81
895
- 82
896
- 83
897
- 84
898
- 85
899
- 86
900
- 87
901
- 88
902
- 89
903
- 90
904
- 91
905
- 92
906
- 93
907
- 94
908
- 95</pre>
909
- </td>
910
- <td>
911
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 71</span>
912
-
913
- <span class='kw'>def</span> <span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
914
- <span class='kw'>if</span> <span class='id identifier rubyid_scopes'>scopes</span>
915
- <span class='kw'>unless</span> <span class='id identifier rubyid_scopes'>scopes</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
916
- <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_scopes'>scopes</span><span class='rbracket'>]</span>
917
- <span class='kw'>end</span>
918
- <span class='kw'>end</span>
919
-
920
- <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>
921
- <span class='kw'>if</span> <span class='id identifier rubyid_scopes'>scopes</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
922
- <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span><span class='rparen'>)</span>
923
- <span class='kw'>else</span>
924
- <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='rparen'>)</span>
925
- <span class='kw'>end</span>
926
-
927
- <span class='kw'>elsif</span> <span class='id identifier rubyid_scopes'>scopes</span>
928
- <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>
929
-
930
- <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</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'>getDependenciesNotation</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>
931
- <span class='kw'>else</span>
932
- <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span><span class='rparen'>)</span>
933
- <span class='kw'>end</span>
934
-
935
-
936
- <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_deps'>deps</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
937
- <span class='kw'>end</span></pre>
938
- </td>
939
- </tr>
940
- </table>
941
- </div>
942
-
943
- <div class="method_details ">
944
- <h3 class="signature " id="dependencies=-instance_method">
945
-
946
- - (<tt>Object</tt>) <strong>dependencies=</strong>(dependencies)
947
-
948
-
949
-
950
-
951
-
952
- </h3><div class="docstring">
953
- <div class="discussion">
954
-
955
- <p>Set dependencies</p>
956
-
957
-
958
- </div>
959
- </div>
960
- <div class="tags">
961
- <p class="tag_title">Parameters:</p>
962
- <ul class="param">
963
-
964
- <li>
965
-
966
- <span class='name'>dependencies</span>
967
-
968
-
969
- <span class='type'>(<tt>Array</tt>)</span>
970
-
971
-
972
-
973
- </li>
974
-
975
- </ul>
976
-
977
-
978
- </div><table class="source_code">
979
- <tr>
980
- <td>
981
- <pre class="lines">
982
-
983
-
984
- 110
985
- 111
986
- 112</pre>
987
- </td>
988
- <td>
989
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 110</span>
990
-
991
- <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>
992
- <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_setDependencies'>setDependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependencies'>dependencies</span> <span class='rparen'>)</span>
993
- <span class='kw'>end</span></pre>
994
- </td>
995
- </tr>
996
- </table>
997
- </div>
998
-
999
- <div class="method_details ">
1000
- <h3 class="signature " id="final_name-instance_method">
1001
-
1002
- - (<tt>Object</tt>) <strong>final_name</strong>
1003
-
1004
-
1005
-
1006
-
1007
-
1008
- </h3><table class="source_code">
1009
- <tr>
1010
- <td>
1011
- <pre class="lines">
1012
-
1013
-
1014
- 178
1015
- 179
1016
- 180</pre>
1017
- </td>
1018
- <td>
1019
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 178</span>
1020
-
1021
- <span class='kw'>def</span> <span class='id identifier rubyid_final_name'>final_name</span>
1022
- <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getFinalName'>getFinalName</span><span class='lparen'>(</span><span class='rparen'>)</span>
1023
- <span class='kw'>end</span></pre>
1024
- </td>
1025
- </tr>
1026
- </table>
1027
- </div>
1028
-
1029
- <div class="method_details ">
1030
- <h3 class="signature " id="invoke-instance_method">
1031
-
1032
- - (<tt>Object</tt>) <strong>invoke</strong>(*opts)
1033
-
1034
-
1035
-
1036
-
1037
-
1038
- </h3><div class="docstring">
1039
- <div class="discussion">
1040
-
1041
- <p>Invoke a Maven goal</p>
1042
-
1043
-
1044
- </div>
1045
- </div>
1046
- <div class="tags">
1047
-
1048
-
1049
- </div><table class="source_code">
1050
- <tr>
1051
- <td>
1052
- <pre class="lines">
1053
-
1054
-
1055
- 152
1056
- 153
1057
- 154
1058
- 155
1059
- 156
1060
- 157
1061
- 158
1062
- 159
1063
- 160
1064
- 161
1065
- 162
1066
- 163
1067
- 164
1068
- 165
1069
- 166
1070
- 167
1071
- 168
1072
- 169
1073
- 170
1074
- 171
1075
- 172
1076
- 173
1077
- 174
1078
- 175
1079
- 176</pre>
1080
- </td>
1081
- <td>
1082
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 152</span>
1083
-
1084
- <span class='kw'>def</span> <span class='id identifier rubyid_invoke'>invoke</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_opts'>opts</span> <span class='rparen'>)</span>
1085
- <span class='comment'>#defaults
1086
- </span> <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1087
- <span class='comment'># Checks ENV for maven home, otherwise defaults /usr/share/maven
1088
- </span> <span class='comment'># XXX: Reuse Eng.getMavenHome?
1089
- </span> <span class='symbol'>:maven_home</span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>maven.home</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>MAVEN_HOME</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/usr/share/maven</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
1090
- <span class='symbol'>:local_repo</span> <span class='op'>=&gt;</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>~/.m2/repository</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1091
- <span class='rbrace'>}</span>
1092
-
1093
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
1094
- <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span> <span class='rparen'>)</span>
1095
- <span class='kw'>end</span>
1096
- <span class='id identifier rubyid_goals'>goals</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span>
1097
-
1098
- <span class='id identifier rubyid_pom'>pom</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getPomFile'>getPomFile</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_getAbsolutePath'>getAbsolutePath</span><span class='lparen'>(</span><span class='rparen'>)</span>
1099
-
1100
- <span class='id identifier rubyid_invoker'>invoker</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.maven.Invoker</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:local_repo</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:maven_home</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
1101
-
1102
- <span class='id identifier rubyid_java_list'>java_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_goals'>goals</span><span class='rparen'>)</span>
1103
- <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>
1104
- <span class='id identifier rubyid_invoker'>invoker</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom'>pom</span><span class='comma'>,</span> <span class='id identifier rubyid_java_list'>java_list</span> <span class='rparen'>)</span>
1105
- <span class='kw'>else</span>
1106
- <span class='id identifier rubyid_invoker'>invoker</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'>execute</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'>pom</span><span class='comma'>,</span> <span class='id identifier rubyid_java_list'>java_list</span><span class='rparen'>)</span>
1107
- <span class='kw'>end</span>
1108
- <span class='kw'>end</span></pre>
1109
- </td>
1110
- </tr>
1111
- </table>
1112
- </div>
1113
-
1114
- <div class="method_details ">
1115
- <h3 class="signature " id="load_naether-instance_method">
1116
-
1117
- - (<tt>Object</tt>) <strong>load_naether</strong>(naether)
1118
-
1119
-
1120
-
1121
-
1122
-
1123
- </h3><div class="docstring">
1124
- <div class="discussion">
1125
-
1126
- <p>Load dependencies and remote repo from a <span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span> instance</p>
1127
-
1128
-
1129
- </div>
1130
- </div>
1131
- <div class="tags">
1132
-
1133
-
1134
- </div><table class="source_code">
1135
- <tr>
1136
- <td>
1137
- <pre class="lines">
1138
-
1139
-
1140
- 129
1141
- 130
1142
- 131
1143
- 132</pre>
1144
- </td>
1145
- <td>
1146
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 129</span>
1147
-
1148
- <span class='kw'>def</span> <span class='id identifier rubyid_load_naether'>load_naether</span><span class='lparen'>(</span> <span class='id identifier rubyid_naether'>naether</span> <span class='rparen'>)</span>
1149
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='op'>=</span> <span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_resolver'>resolver</span><span class='period'>.</span><span class='id identifier rubyid_currentDependencies'>currentDependencies</span><span class='lparen'>(</span><span class='rparen'>)</span>
1150
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_repositories'>repositories</span><span class='op'>=</span> <span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_resolver'>resolver</span><span class='period'>.</span><span class='id identifier rubyid_getRemoteRepositoryUrls'>getRemoteRepositoryUrls</span><span class='lparen'>(</span><span class='rparen'>)</span>
1151
- <span class='kw'>end</span></pre>
1152
- </td>
1153
- </tr>
1154
- </table>
1155
- </div>
1156
-
1157
- <div class="method_details ">
1158
- <h3 class="signature " id="notation=-instance_method">
1159
-
1160
- - (<tt>Object</tt>) <strong>notation=</strong>(notation)
1161
-
1162
-
1163
-
1164
-
1165
-
1166
- </h3><div class="docstring">
1167
- <div class="discussion">
1168
-
1169
- <p>Set the Notation for this Project</p>
1170
-
1171
-
1172
- </div>
1173
- </div>
1174
- <div class="tags">
1175
- <p class="tag_title">Parameters:</p>
1176
- <ul class="param">
1177
-
1178
- <li>
1179
-
1180
- <span class='name'>notation</span>
1181
-
1182
-
1183
- <span class='type'>(<tt>String</tt>)</span>
1184
-
1185
-
1186
-
1187
- </li>
1188
-
1189
- </ul>
1190
-
1191
-
1192
- <p class="tag_title">See Also:</p>
1193
- <ul class="see">
1194
-
1195
- <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>
1196
-
1197
- </ul>
1198
-
1199
- </div><table class="source_code">
1200
- <tr>
1201
- <td>
1202
- <pre class="lines">
1203
-
1204
-
1205
- 64
1206
- 65
1207
- 66</pre>
1208
- </td>
1209
- <td>
1210
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 64</span>
1211
-
1212
- <span class='kw'>def</span> <span class='id identifier rubyid_notation='>notation=</span><span class='lparen'>(</span><span class='id identifier rubyid_notation'>notation</span><span class='rparen'>)</span>
1213
- <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_setProjectNotation'>setProjectNotation</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span> <span class='rparen'>)</span>
1214
- <span class='kw'>end</span></pre>
1215
- </td>
1216
- </tr>
1217
- </table>
1218
- </div>
1219
-
1220
- <div class="method_details ">
1221
- <h3 class="signature " id="repositories=-instance_method">
1222
-
1223
- - (<tt>Object</tt>) <strong>repositories=</strong>(repositories)
1224
-
1225
-
1226
-
1227
-
1228
-
1229
- </h3><div class="docstring">
1230
- <div class="discussion">
1231
-
1232
- <p>Set repositories</p>
1233
-
1234
-
1235
- </div>
1236
- </div>
1237
- <div class="tags">
1238
- <p class="tag_title">Parameters:</p>
1239
- <ul class="param">
1240
-
1241
- <li>
1242
-
1243
- <span class='name'>repositories</span>
1244
-
1245
-
1246
- <span class='type'>(<tt>Array</tt>)</span>
1247
-
1248
-
1249
-
1250
- &mdash;
1251
- <div class='inline'>
1252
- <p>of urls</p>
1253
- </div>
1254
-
1255
- </li>
1256
-
1257
- </ul>
1258
-
1259
-
1260
- </div><table class="source_code">
1261
- <tr>
1262
- <td>
1263
- <pre class="lines">
1264
-
1265
-
1266
- 117
1267
- 118
1268
- 119</pre>
1269
- </td>
1270
- <td>
1271
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 117</span>
1272
-
1273
- <span class='kw'>def</span> <span class='id identifier rubyid_repositories='>repositories=</span><span class='lparen'>(</span> <span class='id identifier rubyid_repositories'>repositories</span> <span class='rparen'>)</span>
1274
- <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_setRepositories'>setRepositories</span><span class='lparen'>(</span> <span class='id identifier rubyid_repositories'>repositories</span> <span class='rparen'>)</span>
1275
- <span class='kw'>end</span></pre>
1276
- </td>
1277
- </tr>
1278
- </table>
1279
- </div>
1280
-
1281
- <div class="method_details ">
1282
- <h3 class="signature " id="version-instance_method">
1283
-
1284
- - (<tt>Object</tt>) <strong>version</strong>
1285
-
1286
-
1287
-
1288
-
1289
-
1290
- </h3><div class="docstring">
1291
- <div class="discussion">
1292
-
1293
- <p>Get the version</p>
1294
-
1295
- <p>return [String] version</p>
1296
-
1297
-
1298
- </div>
1299
- </div>
1300
- <div class="tags">
1301
-
1302
-
1303
- </div><table class="source_code">
1304
- <tr>
1305
- <td>
1306
- <pre class="lines">
1307
-
1308
-
1309
- 124
1310
- 125
1311
- 126</pre>
1312
- </td>
1313
- <td>
1314
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 124</span>
1315
-
1316
- <span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span><span class='lparen'>(</span><span class='rparen'>)</span>
1317
- <span class='kw'>return</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getVersion'>getVersion</span><span class='lparen'>(</span><span class='rparen'>)</span>
1318
- <span class='kw'>end</span></pre>
1319
- </td>
1320
- </tr>
1321
- </table>
1322
- </div>
1323
-
1324
- <div class="method_details ">
1325
- <h3 class="signature " id="write_pom-instance_method">
1326
-
1327
- - (<tt>Object</tt>) <strong>write_pom</strong>(file_path)
1328
-
1329
-
1330
-
1331
-
1332
-
1333
- </h3><div class="docstring">
1334
- <div class="discussion">
1335
-
1336
- <p>Write Maven Pom</p>
1337
-
1338
-
1339
- </div>
1340
- </div>
1341
- <div class="tags">
1342
- <p class="tag_title">Parameters:</p>
1343
- <ul class="param">
1344
-
1345
- <li>
1346
-
1347
- <span class='name'>file_path</span>
1348
-
1349
-
1350
- <span class='type'>(<tt>String</tt>)</span>
1351
-
1352
-
1353
-
1354
- </li>
1355
-
1356
- </ul>
1357
-
1358
-
1359
- </div><table class="source_code">
1360
- <tr>
1361
- <td>
1362
- <pre class="lines">
1363
-
1364
-
1365
- 145
1366
- 146
1367
- 147</pre>
1368
- </td>
1369
- <td>
1370
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 145</span>
1371
-
1372
- <span class='kw'>def</span> <span class='id identifier rubyid_write_pom'>write_pom</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
1373
- <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_writePom'>writePom</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
1374
- <span class='kw'>end</span></pre>
1375
- </td>
1376
- </tr>
1377
- </table>
1378
- </div>
1379
-
1380
- </div>
1381
-
1382
- </div>
1383
-
1384
- <div id="footer">
1385
- Generated on Tue Jan 13 10:20:24 2015 by
1386
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1387
- 0.8.7.2 (ruby-1.9.3).
1388
- </div>
1389
-
1390
- </body>
1391
- </html>