naether 0.12.1-java → 0.12.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1375 +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
- 170
1015
- 171
1016
- 172</pre>
1017
- </td>
1018
- <td>
1019
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 170</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</pre>
1072
- </td>
1073
- <td>
1074
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 152</span>
1075
-
1076
- <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>
1077
- <span class='comment'>#defaults
1078
- </span> <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1079
- <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='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/usr/share/maven</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
1080
- <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>
1081
- <span class='rbrace'>}</span>
1082
-
1083
- <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>
1084
- <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_defaults'>defaults</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>
1085
- <span class='kw'>end</span>
1086
- <span class='id identifier rubyid_goals'>goals</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span>
1087
-
1088
- <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>
1089
-
1090
- <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>
1091
- <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='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> <span class='rparen'>)</span>
1092
- <span class='kw'>end</span></pre>
1093
- </td>
1094
- </tr>
1095
- </table>
1096
- </div>
1097
-
1098
- <div class="method_details ">
1099
- <h3 class="signature " id="load_naether-instance_method">
1100
-
1101
- - (<tt>Object</tt>) <strong>load_naether</strong>(naether)
1102
-
1103
-
1104
-
1105
-
1106
-
1107
- </h3><div class="docstring">
1108
- <div class="discussion">
1109
-
1110
- <p>Load dependencies and remote repo from a <span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span> instance</p>
1111
-
1112
-
1113
- </div>
1114
- </div>
1115
- <div class="tags">
1116
-
1117
-
1118
- </div><table class="source_code">
1119
- <tr>
1120
- <td>
1121
- <pre class="lines">
1122
-
1123
-
1124
- 129
1125
- 130
1126
- 131
1127
- 132</pre>
1128
- </td>
1129
- <td>
1130
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 129</span>
1131
-
1132
- <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>
1133
- <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>
1134
- <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>
1135
- <span class='kw'>end</span></pre>
1136
- </td>
1137
- </tr>
1138
- </table>
1139
- </div>
1140
-
1141
- <div class="method_details ">
1142
- <h3 class="signature " id="notation=-instance_method">
1143
-
1144
- - (<tt>Object</tt>) <strong>notation=</strong>(notation)
1145
-
1146
-
1147
-
1148
-
1149
-
1150
- </h3><div class="docstring">
1151
- <div class="discussion">
1152
-
1153
- <p>Set the Notation for this Project</p>
1154
-
1155
-
1156
- </div>
1157
- </div>
1158
- <div class="tags">
1159
- <p class="tag_title">Parameters:</p>
1160
- <ul class="param">
1161
-
1162
- <li>
1163
-
1164
- <span class='name'>notation</span>
1165
-
1166
-
1167
- <span class='type'>(<tt>String</tt>)</span>
1168
-
1169
-
1170
-
1171
- </li>
1172
-
1173
- </ul>
1174
-
1175
-
1176
- <p class="tag_title">See Also:</p>
1177
- <ul class="see">
1178
-
1179
- <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>
1180
-
1181
- </ul>
1182
-
1183
- </div><table class="source_code">
1184
- <tr>
1185
- <td>
1186
- <pre class="lines">
1187
-
1188
-
1189
- 64
1190
- 65
1191
- 66</pre>
1192
- </td>
1193
- <td>
1194
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 64</span>
1195
-
1196
- <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>
1197
- <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>
1198
- <span class='kw'>end</span></pre>
1199
- </td>
1200
- </tr>
1201
- </table>
1202
- </div>
1203
-
1204
- <div class="method_details ">
1205
- <h3 class="signature " id="repositories=-instance_method">
1206
-
1207
- - (<tt>Object</tt>) <strong>repositories=</strong>(repositories)
1208
-
1209
-
1210
-
1211
-
1212
-
1213
- </h3><div class="docstring">
1214
- <div class="discussion">
1215
-
1216
- <p>Set repositories</p>
1217
-
1218
-
1219
- </div>
1220
- </div>
1221
- <div class="tags">
1222
- <p class="tag_title">Parameters:</p>
1223
- <ul class="param">
1224
-
1225
- <li>
1226
-
1227
- <span class='name'>repositories</span>
1228
-
1229
-
1230
- <span class='type'>(<tt>Array</tt>)</span>
1231
-
1232
-
1233
-
1234
- &mdash;
1235
- <div class='inline'>
1236
- <p>of urls</p>
1237
- </div>
1238
-
1239
- </li>
1240
-
1241
- </ul>
1242
-
1243
-
1244
- </div><table class="source_code">
1245
- <tr>
1246
- <td>
1247
- <pre class="lines">
1248
-
1249
-
1250
- 117
1251
- 118
1252
- 119</pre>
1253
- </td>
1254
- <td>
1255
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 117</span>
1256
-
1257
- <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>
1258
- <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>
1259
- <span class='kw'>end</span></pre>
1260
- </td>
1261
- </tr>
1262
- </table>
1263
- </div>
1264
-
1265
- <div class="method_details ">
1266
- <h3 class="signature " id="version-instance_method">
1267
-
1268
- - (<tt>Object</tt>) <strong>version</strong>
1269
-
1270
-
1271
-
1272
-
1273
-
1274
- </h3><div class="docstring">
1275
- <div class="discussion">
1276
-
1277
- <p>Get the version</p>
1278
-
1279
- <p>return [String] version</p>
1280
-
1281
-
1282
- </div>
1283
- </div>
1284
- <div class="tags">
1285
-
1286
-
1287
- </div><table class="source_code">
1288
- <tr>
1289
- <td>
1290
- <pre class="lines">
1291
-
1292
-
1293
- 124
1294
- 125
1295
- 126</pre>
1296
- </td>
1297
- <td>
1298
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 124</span>
1299
-
1300
- <span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span><span class='lparen'>(</span><span class='rparen'>)</span>
1301
- <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>
1302
- <span class='kw'>end</span></pre>
1303
- </td>
1304
- </tr>
1305
- </table>
1306
- </div>
1307
-
1308
- <div class="method_details ">
1309
- <h3 class="signature " id="write_pom-instance_method">
1310
-
1311
- - (<tt>Object</tt>) <strong>write_pom</strong>(file_path)
1312
-
1313
-
1314
-
1315
-
1316
-
1317
- </h3><div class="docstring">
1318
- <div class="discussion">
1319
-
1320
- <p>Write Maven Pom</p>
1321
-
1322
-
1323
- </div>
1324
- </div>
1325
- <div class="tags">
1326
- <p class="tag_title">Parameters:</p>
1327
- <ul class="param">
1328
-
1329
- <li>
1330
-
1331
- <span class='name'>file_path</span>
1332
-
1333
-
1334
- <span class='type'>(<tt>String</tt>)</span>
1335
-
1336
-
1337
-
1338
- </li>
1339
-
1340
- </ul>
1341
-
1342
-
1343
- </div><table class="source_code">
1344
- <tr>
1345
- <td>
1346
- <pre class="lines">
1347
-
1348
-
1349
- 145
1350
- 146
1351
- 147</pre>
1352
- </td>
1353
- <td>
1354
- <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 145</span>
1355
-
1356
- <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>
1357
- <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>
1358
- <span class='kw'>end</span></pre>
1359
- </td>
1360
- </tr>
1361
- </table>
1362
- </div>
1363
-
1364
- </div>
1365
-
1366
- </div>
1367
-
1368
- <div id="footer">
1369
- Generated on Wed Oct 2 10:49:58 2013 by
1370
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1371
- 0.8.7.2 (ruby-1.9.3).
1372
- </div>
1373
-
1374
- </body>
1375
- </html>