rakish 0.9.11.beta → 0.9.13.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/bin/artd-rakish-bin/call-rake.xml +95 -0
- data/bin/artd-rakish-find +19 -0
- data/doc/ChangeLog.txt +13 -0
- data/doc/SimpleJavaSamples.txt +8 -1
- data/doc/ToDoItems.txt +2 -2
- data/doc/UserGuide +2 -2
- data/doc/Utilties.txt +34 -0
- data/lib/rakish/CppProjects.rb +8 -8
- data/lib/rakish/RaspberiPiCppTools.rb +1 -1
- data/lib/rakish/WindowsCppTools.rb +7 -7
- data/lib/rakish/ZipBuilder.rb +2 -2
- metadata +7 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae019f56cf84c70afd026b3b5249827ee98a1e593ab066d55022baf966a1484b
|
|
4
|
+
data.tar.gz: 4204cca818ec52739b306e9bf768498ab30dc7e1a10155c7e74c44f73f12860e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f6b26bb217757116ff363bac7592efdc03a2a769c23aadce1c53cf47002094724b7d50477e188831187e02c088758508997f8862fee1f16bc9c735bfed791a4
|
|
7
|
+
data.tar.gz: e66504f2541f351117762c624c4aeeefd44114fc76b392b682fd497cc81f6703b091254dcfca6623acb9c208152184ea2023056d183828117fb58f3e04337e41
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project name="call-rake" default="" xmlns:if="ant:if" >
|
|
3
|
+
|
|
4
|
+
<dirname property="my.directory" file="/bin/artd-rakish-bin/call-rake.xml"/>
|
|
5
|
+
<dirname property="jsdk.home" file="${java.home}"/>
|
|
6
|
+
|
|
7
|
+
<condition property="os.windows">
|
|
8
|
+
<os family="windows"/>
|
|
9
|
+
</condition>
|
|
10
|
+
<condition property="os.linux">
|
|
11
|
+
<os family="unix" name="linux" />
|
|
12
|
+
</condition>
|
|
13
|
+
|
|
14
|
+
<property environment="env"/>
|
|
15
|
+
|
|
16
|
+
<macrodef name="createOsMacros">
|
|
17
|
+
<sequential if:set="os.windows">
|
|
18
|
+
|
|
19
|
+
<exec executable="artd-rakish-find" outputproperty="rake.exec.path">
|
|
20
|
+
<arg value="exec-rake.bat"/>
|
|
21
|
+
</exec>
|
|
22
|
+
|
|
23
|
+
<macrodef name="call-rake">
|
|
24
|
+
<attribute name="file" default="./rakefile.rb"/>
|
|
25
|
+
<attribute name="target" default="_not_set_" />
|
|
26
|
+
<attribute name="log" default="rake.log"/>
|
|
27
|
+
<attribute name="trace" default=""/>
|
|
28
|
+
<attribute name="rake.path" default="${rake.exec.path}"/>
|
|
29
|
+
<attribute name="java.home" default="${jsdk.home}"/>
|
|
30
|
+
<attribute name="idea.project" default="${user.dir}/.idea"/>
|
|
31
|
+
<sequential>
|
|
32
|
+
<property name="_rake_target_" value="@{target}" />
|
|
33
|
+
<script language="javascript">
|
|
34
|
+
if(project.getProperty("_rake_target_") == "_not_set_") {
|
|
35
|
+
project.setProperty("_rake_target_", self.getOwningTarget());
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
<record name="@{log}" action="start"/>
|
|
39
|
+
<exec executable="cmd">
|
|
40
|
+
<arg value="/c"/>
|
|
41
|
+
<arg value="@{rake.path}"/>
|
|
42
|
+
<arg value="-f"/>
|
|
43
|
+
<arg value="@{file}"/>
|
|
44
|
+
<arg value="@{trace}"/>
|
|
45
|
+
<arg value="${_rake_target_}"/>
|
|
46
|
+
<arg value=""'JAVA_HOME=@{java.home}'""/>
|
|
47
|
+
<arg value=""'IDEA_PROJECT=@{idea.project}'""/>
|
|
48
|
+
</exec>
|
|
49
|
+
<record name="@{log}" action="stop"/>
|
|
50
|
+
</sequential>
|
|
51
|
+
</macrodef>
|
|
52
|
+
</sequential>
|
|
53
|
+
<sequential if:set="os.linux">
|
|
54
|
+
<!-- in this case rake needs to be in the system path -->
|
|
55
|
+
<property name="rake.exec.path"
|
|
56
|
+
value="rake" />
|
|
57
|
+
<macrodef name="call-rake">
|
|
58
|
+
<attribute name="file" default="./rakefile.rb"/>
|
|
59
|
+
<attribute name="target" default="_not_set_" />
|
|
60
|
+
<attribute name="log" default="rake.log"/>
|
|
61
|
+
<attribute name="trace" default=""/>
|
|
62
|
+
<attribute name="rake.path" default="${rake.exec.path}"/>
|
|
63
|
+
<attribute name="java.home" default="${jsdk.home}"/>
|
|
64
|
+
<attribute name="idea.project" default="${user.dir}/.idea"/>
|
|
65
|
+
<sequential>
|
|
66
|
+
<property name="_rake_target_" value="@{target}" />
|
|
67
|
+
<script language="javascript">
|
|
68
|
+
if(project.getProperty("_rake_target_") == "_not_set_") {
|
|
69
|
+
project.setProperty("_rake_target_", self.getOwningTarget());
|
|
70
|
+
}
|
|
71
|
+
</script>
|
|
72
|
+
<record name="@{log}" action="start"/>
|
|
73
|
+
<exec executable="@{rake.path}">
|
|
74
|
+
<arg value="-f"/>
|
|
75
|
+
<arg value="@{file}"/>
|
|
76
|
+
<arg value="@{trace}"/>
|
|
77
|
+
<arg value="${_rake_target_}"/>
|
|
78
|
+
<arg value="JAVA_HOME=@{java.home}"/>
|
|
79
|
+
<arg value="IDEA_PROJECT=@{idea.project}"/>
|
|
80
|
+
</exec>
|
|
81
|
+
<record name="@{log}" action="stop"/>
|
|
82
|
+
</sequential>
|
|
83
|
+
</macrodef>
|
|
84
|
+
</sequential>
|
|
85
|
+
</macrodef>
|
|
86
|
+
|
|
87
|
+
<createOsMacros />
|
|
88
|
+
|
|
89
|
+
<!--
|
|
90
|
+
<target name="showprops">
|
|
91
|
+
<echoproperties/>
|
|
92
|
+
</target>
|
|
93
|
+
-->
|
|
94
|
+
|
|
95
|
+
</project>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
args = ARGV;
|
|
4
|
+
|
|
5
|
+
if(args[0])
|
|
6
|
+
path = "#{File.expand_path(File.dirname(__FILE__))}/artd-rakish-bin/#{args[0]}";
|
|
7
|
+
if(File.exists?(path))
|
|
8
|
+
puts path;
|
|
9
|
+
exit 0
|
|
10
|
+
end
|
|
11
|
+
if(ENV['ARTD_TOOLS']) # only will be found on windows when executed with artd-shell
|
|
12
|
+
path = File.expand_path("#{ENV['ARTD_TOOLS']}exec-rake.bat");
|
|
13
|
+
if(File.exists?(path))
|
|
14
|
+
puts path;
|
|
15
|
+
exit 0
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
data/doc/ChangeLog.txt
CHANGED
|
@@ -48,3 +48,16 @@
|
|
|
48
48
|
task :withCreateArgs, [ :commandLineArg, ... ], :$@=>{ :arg0=>'val0', :arg1=>val1 ...} do end
|
|
49
49
|
task :withCreateArgs, [ :commandLineArg, ... ]=>[ :deps ], :$@=>{ :arg0=>'val0', :arg1=>val1 ...} do end
|
|
50
50
|
|
|
51
|
+
0.9.12.beta
|
|
52
|
+
|
|
53
|
+
- Added binary script to return path to auxilliary support files used in ant scripts and other places that are
|
|
54
|
+
contained in this gem.
|
|
55
|
+
|
|
56
|
+
- Added call-rake.xml ant script for use in spawning calls to rake from intellij managed, and general,
|
|
57
|
+
ant scripts.
|
|
58
|
+
|
|
59
|
+
0.9.13.beta
|
|
60
|
+
|
|
61
|
+
- added second "args" arcument to all action lambdas for strict argument count checking
|
|
62
|
+
in ruby 2.0+
|
|
63
|
+
|
data/doc/SimpleJavaSamples.txt
CHANGED
|
@@ -55,14 +55,21 @@ The JavaProjectModule does export some standard targets :compile, :javadoc, :dis
|
|
|
55
55
|
cfg.resourceDir = "#{cfg.buildDir}/production/.orlando";
|
|
56
56
|
|
|
57
57
|
# Java configuration items.
|
|
58
|
+
java = cfg.java;
|
|
58
59
|
|
|
59
60
|
cfg.java_home = ENV['JAVA_HOME'];
|
|
60
61
|
cfg.ant_home = ENV['ANT_HOME'] || '/usr/share/ant';
|
|
62
|
+
|
|
61
63
|
# cfg.catalina_home = ENV['CATALINA_HOME'] || '/usr/share/tomcat7';
|
|
62
|
-
java = cfg.java;
|
|
63
64
|
java.addJarSearchPath("#{myDir}/third-party-jars");
|
|
64
65
|
java.addClassPaths( 'log4j-1.2.17.jar' ); # everything will inherit this
|
|
65
66
|
|
|
67
|
+
if(cfg.intellij) # we are running this from an intellij UI
|
|
68
|
+
java.addJavacFlags(cfg.intellij.javacFlags);
|
|
69
|
+
else
|
|
70
|
+
java.addJavacFlags("-Xlint:unchecked -encoding ISO-8859-1");
|
|
71
|
+
end
|
|
72
|
+
|
|
66
73
|
# tomcat deployment options
|
|
67
74
|
|
|
68
75
|
tomcatConfig = BuildConfig.new
|
data/doc/ToDoItems.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
===Make a usable MultiProcessTask for spawning multiple asynchronous tasks
|
|
7
7
|
The one in Rake actually slows things down when too
|
|
8
|
-
many are spawned due to the thread
|
|
8
|
+
many are spawned due to the thread switching overhead so it really isn't practical. What it should do is maintain a semaphone
|
|
9
9
|
managed queue and only spawn as many tasks as there are processor cores on the machine to handle the big processes they
|
|
10
10
|
spawn ( compilers and the like ) the little ruby tasks are better off being run in the primary thread unless they are
|
|
11
11
|
doing something with a lot of waiting involved like uploading a file. In any case limiting the number of threads
|
|
@@ -13,6 +13,6 @@ would help this too.
|
|
|
13
13
|
|
|
14
14
|
===Make tomcat servlet module releasable
|
|
15
15
|
===A real manual
|
|
16
|
-
===Make intellij integration module releasable
|
|
16
|
+
===Make intellij integration module releasable (partly done)
|
|
17
17
|
|
|
18
18
|
|
data/doc/UserGuide
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
= Rakish - Build system user guide
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
:include:doc/RakishOverview.html
|
|
6
5
|
|
|
7
6
|
===See why I did it at the end if curious.
|
|
8
7
|
|
|
9
8
|
:include:doc/SimpleJavaSamples.txt
|
|
10
9
|
|
|
10
|
+
:include:doc/Utilties.txt
|
|
11
|
+
|
|
11
12
|
:include:doc/WhyIDidIt.txt
|
|
12
13
|
|
|
13
14
|
:include:doc/ToDoItems.txt
|
|
14
15
|
|
|
15
|
-
|
data/doc/Utilties.txt
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
==Binary Utilities and Support files.
|
|
3
|
+
|
|
4
|
+
===artd-rakish-find
|
|
5
|
+
|
|
6
|
+
This is a utilty to find a non-ruby support file packaged with this gem. It was needed
|
|
7
|
+
to handle finding files when managed by the rvm package manger and other systems.
|
|
8
|
+
|
|
9
|
+
It will return the full path via stdout to the location of the support files if found in the gem.
|
|
10
|
+
|
|
11
|
+
On windows in my installation it will return via stdout only if piped so it doesn't spawn a
|
|
12
|
+
command shell window - an annoyance with windows !!
|
|
13
|
+
|
|
14
|
+
ie:
|
|
15
|
+
|
|
16
|
+
$ artd-rakish-find call-rake.xml > foo
|
|
17
|
+
$ type foo
|
|
18
|
+
D:/artd/third-party/tools/Ruby193/lib/ruby/gems/1.9.1/gems/rakish-0.9.12.beta/bin/artd-rakish-bin/call-rake.xml
|
|
19
|
+
|
|
20
|
+
===call-rake.xml
|
|
21
|
+
|
|
22
|
+
This is an ant script the XML file used as follows on linux or windows to facilitate calling rake tasks from ant scripts:
|
|
23
|
+
|
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
25
|
+
<project name="rake-targets" default="">
|
|
26
|
+
<exec executable="artd-rakish-find" outputproperty="rake.ant.xml">
|
|
27
|
+
<arg value="call-rake.xml"/>
|
|
28
|
+
</exec>
|
|
29
|
+
<import file="${rake.ant.xml}" />
|
|
30
|
+
|
|
31
|
+
<target name="subdirTest" description="test required subprojects">
|
|
32
|
+
<call-rake file="./test/subdir-test/rakefile.rb" target="subdir-test:test"/>
|
|
33
|
+
</target>
|
|
34
|
+
</project>
|
data/lib/rakish/CppProjects.rb
CHANGED
|
@@ -116,7 +116,7 @@ module CTools
|
|
|
116
116
|
[]
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
@@doNothingAction_ = lambda do |t|
|
|
119
|
+
@@doNothingAction_ = lambda do |t,args|
|
|
120
120
|
log.debug("attempting to compile #{t.source} into\n #{t}\n in #{File.expand_path('.')}");
|
|
121
121
|
end
|
|
122
122
|
|
|
@@ -381,21 +381,21 @@ module CppProjectModule
|
|
|
381
381
|
@cflags||[];
|
|
382
382
|
end
|
|
383
383
|
|
|
384
|
-
VCProjBuildAction_ = lambda do |t|
|
|
384
|
+
VCProjBuildAction_ = lambda do |t,args|
|
|
385
385
|
require "#{Rakish::MAKEDIR}/VcprojBuilder.rb"
|
|
386
386
|
VcprojBuilder.onVcprojTask(t.config);
|
|
387
387
|
end
|
|
388
388
|
|
|
389
|
-
VCProjCleanAction_ = lambda do |t|
|
|
389
|
+
VCProjCleanAction_ = lambda do |t,args|
|
|
390
390
|
require "#{Rakish::MAKEDIR}/VcprojBuilder.rb"
|
|
391
391
|
VcprojBuilder.onVcprojCleanTask(t.config);
|
|
392
392
|
end
|
|
393
393
|
|
|
394
|
-
LinkIncludeAction_ = lambda do |t|
|
|
394
|
+
LinkIncludeAction_ = lambda do |t,args|
|
|
395
395
|
config = t.config;
|
|
396
|
-
|
|
396
|
+
if(config.verbose?)
|
|
397
397
|
puts "generating #{t.name} from #{t.source}"
|
|
398
|
-
|
|
398
|
+
end
|
|
399
399
|
|
|
400
400
|
destfile = t.name;
|
|
401
401
|
srcpath = config.getRelativePath(t.source,File.dirname(t.name));
|
|
@@ -445,8 +445,8 @@ module CppProjectModule
|
|
|
445
445
|
end
|
|
446
446
|
end
|
|
447
447
|
|
|
448
|
-
UpdateDependsAction_ = lambda do |t|
|
|
449
|
-
|
|
448
|
+
UpdateDependsAction_ = lambda do |t,args|
|
|
449
|
+
doUpdateDepends(t) if(t.config.dependencyFilesUpdated)
|
|
450
450
|
end
|
|
451
451
|
|
|
452
452
|
def resolveConfiguredTasks()
|
|
@@ -490,12 +490,12 @@ module Rakish
|
|
|
490
490
|
cfl
|
|
491
491
|
end
|
|
492
492
|
|
|
493
|
-
@@compileCPPAction = lambda do |t|
|
|
493
|
+
@@compileCPPAction = lambda do |t,args|
|
|
494
494
|
t.config.ctools.doCompileCpp(t)
|
|
495
495
|
end
|
|
496
496
|
@@compileCAction = @@compileCPPAction;
|
|
497
497
|
|
|
498
|
-
@@compileRCAction = lambda do |t|
|
|
498
|
+
@@compileRCAction = lambda do |t,args|
|
|
499
499
|
t.config.ctools.doCompileRc(t)
|
|
500
500
|
end
|
|
501
501
|
|
|
@@ -556,7 +556,7 @@ module Rakish
|
|
|
556
556
|
end
|
|
557
557
|
|
|
558
558
|
|
|
559
|
-
@@buildLibAction = lambda do |t|
|
|
559
|
+
@@buildLibAction = lambda do |t,args|
|
|
560
560
|
t.config.ctools.doBuildLib(t)
|
|
561
561
|
end
|
|
562
562
|
def doBuildLib(t)
|
|
@@ -595,7 +595,7 @@ module Rakish
|
|
|
595
595
|
system( cmdline );
|
|
596
596
|
end
|
|
597
597
|
|
|
598
|
-
@@linkDllAction = lambda do |t|
|
|
598
|
+
@@linkDllAction = lambda do |t,args|
|
|
599
599
|
t.config.ctools.doLinkDll(t)
|
|
600
600
|
end
|
|
601
601
|
def doLinkDll(t)
|
|
@@ -682,7 +682,7 @@ module Rakish
|
|
|
682
682
|
#endif
|
|
683
683
|
end
|
|
684
684
|
|
|
685
|
-
@@linkAppAction = lambda do |t|
|
|
685
|
+
@@linkAppAction = lambda do |t,args|
|
|
686
686
|
t.config.ctools.doLinkApp(t)
|
|
687
687
|
end
|
|
688
688
|
def doLinkApp(t)
|
|
@@ -751,7 +751,7 @@ module Rakish
|
|
|
751
751
|
|
|
752
752
|
end
|
|
753
753
|
|
|
754
|
-
@@makeManifestAction = lambda do |t|
|
|
754
|
+
@@makeManifestAction = lambda do |t,args|
|
|
755
755
|
t.config.tools.doMakeManifest(t)
|
|
756
756
|
end
|
|
757
757
|
def doMakeManifest(t)
|
|
@@ -835,7 +835,7 @@ module Rakish
|
|
|
835
835
|
return(resobjs)
|
|
836
836
|
end
|
|
837
837
|
|
|
838
|
-
@@resolveLinkAction_ = lambda do |t|
|
|
838
|
+
@@resolveLinkAction_ = lambda do |t,args|
|
|
839
839
|
end
|
|
840
840
|
|
|
841
841
|
def createLinkTask(objs,cfg)
|
data/lib/rakish/ZipBuilder.rb
CHANGED
|
@@ -20,7 +20,7 @@ module ZipBuilderModule
|
|
|
20
20
|
|
|
21
21
|
public
|
|
22
22
|
|
|
23
|
-
def doBuildZipAction(t) # :nodoc:
|
|
23
|
+
def doBuildZipAction(t,args) # :nodoc:
|
|
24
24
|
|
|
25
25
|
cfg = t.config;
|
|
26
26
|
|
|
@@ -60,7 +60,7 @@ module ZipBuilderModule
|
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
@@buildZipAction_ = ->(t) do
|
|
63
|
+
@@buildZipAction_ = ->(t,args) do
|
|
64
64
|
t.config.doBuildZipAction(t);
|
|
65
65
|
end
|
|
66
66
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rakish
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.13.beta
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Kennard
|
|
@@ -34,21 +34,25 @@ cert_chain:
|
|
|
34
34
|
d3bD+MvWz68LOvi+J4Tch0DV8mHIuHmUCL7o3RLXWgDWZ93RGm7cr6x+lVTMSOKQ
|
|
35
35
|
SSBRP6HLDETO7acinRGftA==
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2018-
|
|
37
|
+
date: 2018-11-04 00:00:00.000000000 Z
|
|
38
38
|
dependencies: []
|
|
39
39
|
description: Rakish Rake build system built on top of Rake for managing large scale
|
|
40
40
|
projects with lots of modules.
|
|
41
41
|
email: peterk@livingwork.com
|
|
42
|
-
executables:
|
|
42
|
+
executables:
|
|
43
|
+
- artd-rakish-find
|
|
43
44
|
extensions: []
|
|
44
45
|
extra_rdoc_files:
|
|
45
46
|
- doc/UserGuide
|
|
46
47
|
files:
|
|
48
|
+
- bin/artd-rakish-bin/call-rake.xml
|
|
49
|
+
- bin/artd-rakish-find
|
|
47
50
|
- doc/ChangeLog.txt
|
|
48
51
|
- doc/RakishOverview.html
|
|
49
52
|
- doc/SimpleJavaSamples.txt
|
|
50
53
|
- doc/ToDoItems.txt
|
|
51
54
|
- doc/UserGuide
|
|
55
|
+
- doc/Utilties.txt
|
|
52
56
|
- doc/WhyIDidIt.txt
|
|
53
57
|
- lib/rakish.rb
|
|
54
58
|
- lib/rakish/ArchiveBuilder.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|