airake 0.1.9 → 0.1.10

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.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ == 0.1.10 2007-10-01
2
+
3
+ * Moving fcsh tasks into own namespace. New tasks names are: fcsh:start, fcsh:stop, fcsh:restart
4
+ * DEBUG=true is enabled by default for test and adl tasks
5
+ * Updated to use AIR beta 2
6
+ * Updated documentation
7
+ * Removed fail message on mxmlc
8
+
1
9
  == 0.1.9 2007-09-06
2
10
 
3
11
  * Updating documentation
data/Manifest.txt CHANGED
@@ -24,7 +24,9 @@ lib/airake/fcsh.rb
24
24
  lib/airake/fcshd.rb
25
25
  lib/airake/project.rb
26
26
  lib/airake/tasks.rb
27
+ lib/airake/tasks/air.rake
27
28
  lib/airake/tasks/deployment.rake
29
+ lib/airake/tasks/fcsh.rake
28
30
  lib/airake/version.rb
29
31
  log/debug.log
30
32
  script/destroy
data/README.txt CHANGED
@@ -2,14 +2,13 @@
2
2
 
3
3
  Flex SDK: http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
4
4
 
5
- To include mxmlc, fcsh, adl and adt (from Flex SDK):
5
+ To include mxmlc and fcsh (from Flex SDK):
6
6
  export PATH="/path/to/flex_sdk_3/bin"
7
7
 
8
- Apollo SDK: http://labs.adobe.com/downloads/airsdk.html
9
- (Note: flex 3 beta 1 includes these files already)
8
+ AIR SDK: http://labs.adobe.com/downloads/airsdk.html
10
9
 
11
- To include adl and adt (from Apollo SDK):
12
- export PATH="/Applications/ApolloSDK/bin:$PATH"
10
+ To include adl and adt (from AIR SDK):
11
+ export PATH="/path/to/air_sdk/bin:$PATH"
13
12
 
14
13
  == Creating an AIR project
15
14
 
@@ -27,25 +26,31 @@ To include adl and adt (from Apollo SDK):
27
26
  rake air:adl
28
27
 
29
28
  # Start FCSHD (for faster compilation)
30
- rake air:start_fcshd
29
+ rake fcsh:start
31
30
 
32
31
  # Stop FCSHD
33
- rake air:stop_fcsh
32
+ rake fcsh:stop
34
33
 
35
34
  # Restart FCSHD
36
- rake air:restart_fcshd
35
+ rake fcsh:restart
37
36
 
38
- # Running alternate MXML, (the following expects src/Test-app.xml descriptor file)
37
+ # Running alternate MXML, (we expect src/Test-app.xml descriptor)
39
38
  rake air:adl MXML=src/Test.mxml
40
39
 
41
- # Run ADL with debug enabled
42
- rake air:adl DEBUG=true
40
+ # Run ADL with debug disabled
41
+ rake air:adl DEBUG=false
43
42
 
44
43
  # Testing
45
44
  rake air:test
46
45
 
47
46
  # Package AIR file
48
47
  rake air:package
48
+
49
+ == Deprecated tasks
50
+
51
+ Renamed air:start_fcshd to fcsh:start
52
+ Renamed air:stop_fcshd to fcsh:stop
53
+ Renamed air:restart_fcshd to fcsh:restart
49
54
 
50
55
  == Adding other tasks
51
56
 
@@ -2,46 +2,51 @@
2
2
 
3
3
  Flex SDK: http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
4
4
 
5
- To include mxmlc, fcsh, adl and adt (from Flex SDK):
5
+ To include mxmlc and fcsh (from Flex SDK):
6
6
  export PATH="/path/to/flex_sdk_3/bin"
7
7
 
8
- Apollo SDK: http://labs.adobe.com/downloads/airsdk.html
9
- (Note: flex 3 beta 1 includes these files already)
8
+ AIR SDK: http://labs.adobe.com/downloads/airsdk.html
10
9
 
11
- To include adl and adt (from Apollo SDK):
12
- export PATH="/Applications/ApolloSDK/bin:$PATH"
10
+ To include adl and adt (from AIR SDK):
11
+ export PATH="/path/to/air_sdk/bin:$PATH"
13
12
 
14
13
  == Tasks
15
14
 
16
15
  # View all tasks
17
- rake --tasks
16
+ rake --tasks
18
17
 
19
18
  # Compiling
20
19
  rake air:compile
21
20
 
22
21
  # Running air debug launcher (ADL)
23
22
  rake air:adl
24
-
23
+
25
24
  # Start FCSHD (for faster compilation)
26
- rake air:start_fcshd
25
+ rake fcsh:start
27
26
 
28
27
  # Stop FCSHD
29
- rake air:stop_fcsh
28
+ rake fcsh:stop
30
29
 
31
30
  # Restart FCSHD
32
- rake air:restart_fcshd
31
+ rake fcsh:restart
33
32
 
34
- # Running alternate MXML, (the following expects src/Test-app.xml descriptor file)
33
+ # Running alternate MXML, (we expect src/Test-app.xml descriptor)
35
34
  rake air:adl MXML=src/Test.mxml
36
35
 
37
- # Run ADL with debug enabled
38
- rake air:adl DEBUG=true
36
+ # Run ADL with debug disabled
37
+ rake air:adl DEBUG=false
39
38
 
40
39
  # Testing
41
40
  rake air:test
42
41
 
43
42
  # Package AIR file
44
43
  rake air:package
44
+
45
+ == Deprecated tasks
46
+
47
+ Renamed air:start_fcshd to fcsh:start
48
+ Renamed air:stop_fcshd to fcsh:stop
49
+ Renamed air:restart_fcshd to fcsh:restart
45
50
 
46
51
  == Adding other tasks
47
52
 
@@ -1,12 +1,6 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" title="<%= app_name %>">
3
3
 
4
- <mx:Style>
5
- Application {
6
- background-image:"";
7
- background-color:"";
8
- background-alpha:"0.5";
9
- }
10
- </mx:Style>
4
+ <mx:Label text="Hi"/>
11
5
 
12
6
  </mx:WindowedApplication>
@@ -1,29 +1,33 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <application xmlns="http://ns.adobe.com/air/application/1.0.M4" appId="com.company.App" version="0.0.1">
3
-
4
- <!--
5
- AIR Application Descriptor File:
6
- Specifies parameters for identifying, installing, and launching AIR applications.
7
-
8
- The root element of the descriptor is "application" and has the attributes:
9
- appID - A string identifying this application. Every AIR application must
10
- have a unique appID. The recommended form of an appID is a
11
- dot-delimited, reverse-DNS-style string, such as
12
- "com.example.ApplicationName". The appID string must be between
13
- 17-255 characters long and may include the following characters:
14
- 0-9
15
- a-z
16
- A-Z
17
- . (dot)
18
- - (hyphen)
19
- version - An application-defined version designator.
20
- Examples: "1.0", ".4", "0.5", "Alpha 1",
21
- xmlns - The AIR namespace ("http://ns.adobe.com/air/application/1.0.M4").
22
- -->
2
+ <application xmlns="http://ns.adobe.com/air/application/1.0.M5" appId="com.companyName.<%= app_name %>" version="0.0.1">
3
+
4
+ <!--
5
+ AIR Application Descriptor File:
6
+ Specifies parameters for identifying, installing, and launching AIR applications.
7
+
8
+ The root element of the descriptor, "application" has these attributes:
9
+ appID - A string identifying this application. Every AIR
10
+ application must have a unique appID. The recommended
11
+ form of an appID is a dot-delimited, reverse-DNS-style
12
+ string, such as: "com.example.ApplicationName"
13
+ The appID string must be between 17-255 characters long
14
+ and may include the following characters:
15
+ 0-9
16
+ a-z
17
+ A-Z
18
+ . (dot)
19
+ - (hyphen)
20
+ version - An application version designator.
21
+ Examples: "1.0", ".4", "0.5", "Alpha 1"
22
+ minimumPatchLevel - the minimum patch level of the runtime version that this
23
+ application requires. Example: 45
24
+ xmlns - The AIR namespace: http://ns.adobe.com/air/application/1.0.M5
25
+ The last segment of the namespace specifies the version
26
+ of the runtime required for this application to run.
27
+ -->
23
28
 
24
29
  <!--
25
- The name displayed by the operating system when the application is
26
- running. (Required.)
30
+ The application name displayed by the operating system. (Required.)
27
31
  -->
28
32
  <name><%= app_name %></name>
29
33
 
@@ -43,72 +47,146 @@
43
47
  <copyright><%= Date.today.year %></copyright>
44
48
 
45
49
  <!--
46
- The main content file of the application, which must be a SWF or
47
- HTML file. (Required.)
48
-
49
- Attributes:
50
- systemChrome - "standard" or "none". If "standard", the application
51
- window is opened with operating system-specific window
52
- elements such as a title bar, minimize, and close
53
- buttons. If "none", the application must provide its
54
- own window controls. (Note, the Flex WindowedApplication
55
- class supplies a set of window controls, which are only
56
- shown when systemChrome="none".)
57
- transparent - "true" or "false". If "true", the application has support
58
- for full transparency.
59
- visible - "true" or "false". If "false", the main window will not
60
- be displayed
61
- until the application changes the window visible property
62
- to "true".
63
- width - the initial window height (including chrome).
64
- height - the initial window width (including chrome).
65
-
66
- In Flex Builder, the SWF reference required within this tag will be set
67
- automatically when you launch or export this application.
68
- -->
69
- <rootContent systemChrome="none" transparent="true" visible="true" width="800" height="600">bin/<%= app_name %>.swf</rootContent>
70
-
50
+ The settings for the initial application window.
51
+ -->
52
+ <initialWindow>
53
+ <!--
54
+ The title displayed in the AIR application installer.
55
+ -->
56
+ <title></title>
57
+
58
+ <!--
59
+ The main content file of the application, which must be a SWF or HTML
60
+ file. (Required.)
61
+
62
+ Note: In Flex Builder, the SWF reference required within this tag will
63
+ be set automatically when you launch or export this application.
64
+ -->
65
+ <content>bin/<%= app_name %>.swf</content>
66
+
67
+ <!--
68
+ Specifies the type of system chrome used by the window.
69
+
70
+ standard - the application window is opened with standard operating
71
+ system window elements such as a title bar, minimize,
72
+ and close buttons.
73
+ none - the application must provide its own window controls.
74
+ (Note, that the Flex mx:WindowedApplication class supplies
75
+ its own window controls, shown only when systemChrome=none.)
76
+
77
+ Default value: standard
78
+ -->
79
+ <systemChrome>standard</systemChrome>
80
+
81
+ <!--
82
+ Specifies whether the window supports transparency and alpha blending
83
+ against the desktop.
84
+
85
+ If true, the window display is composited against the desktop. Areas of
86
+ the window not covered by a display object, or covered by display
87
+ objects with an alpha setting of zero, are effectively invisible and
88
+ will not intercept mouse events (which will be received by the desktop
89
+ object below the window).
90
+
91
+ Setting transparent=true for a window with system chrome is not supported.
92
+
93
+ Default value: false
94
+ -->
95
+ <transparent>false</transparent>
96
+
97
+ <!--
98
+ Specifies whether the window will be visible on application startup.
99
+
100
+ If false, the main window will not be displayed until the application
101
+ changes the NativeWindow.visible property to true or calls
102
+ NativeWindow.activate(). Note that the Flex Framework will set the
103
+ initial window defined by mx:WindowedApplication to be visible
104
+ immediately prior to the applicationComplete event unless the
105
+ WindowedApplication.windowVisible property is false.
106
+
107
+ Default value: false
108
+ -->
109
+ <visible>true</visible>
110
+
111
+ <!--
112
+ Other settings for the initial window.
113
+ -->
114
+ <!-- <minimizable>true</minimizable> -->
115
+ <!-- <maximizable>true</maximizable> -->
116
+ <!-- <resizable>true</resizable> -->
117
+ <!-- <width>500</width> -->
118
+ <!-- <height>500</height> -->
119
+ <!-- <x>150</x> -->
120
+ <!-- <y>150</y> -->
121
+ <x>100</x>
122
+ <y>100</y>
123
+ <width>600</width>
124
+ <height>400</height>
125
+ <!-- <minSize>300 300</minSize> -->
126
+ <!-- <maxSize>800 800</maxSize> -->
127
+ </initialWindow>
128
+
71
129
  <!--
72
130
  The subdirectory within the default application installation location in
73
131
  which to install the application.
132
+
133
+ Use forward slashes '/' to separate folders. The path cannot start with a
134
+ forward slash; end with a dot '.'; and cannot contain the characters: *":<>?\|
74
135
  -->
75
136
  <!-- <installFolder></installFolder> -->
76
-
137
+
138
+ <!--
139
+ The location within the Windows Programs menu in which to place
140
+ application shortcuts. Ignored on Mac OS X.
141
+
142
+ Use forward slashes '/' to separate folders. The path cannot start with a
143
+ forward slash; end with a dot '.'; and cannot contain the characters: *":<>?\|
144
+ -->
145
+ <!-- <programMenuFolder>Example Company/Example Application</programMenuFolder> -->
146
+
77
147
  <!--
78
148
  One or more PNG, GIF, or JPEG graphics files to be used as application
79
149
  icons. The path specified is relative to the application root directory.
80
- If an image is specified, it must be the exact size. The image files
81
- must be included in the AIR package.
150
+ If an image is specified, it must be the exact size. The image files must
151
+ be included in the AIR file.
82
152
  -->
83
-
84
- <!--
85
- <icon>
86
- <image16x16>icons/AIRApp_16.png</image16x16>
87
- <image32x32>icons/AIRApp_32.png</image32x32>
88
- <image48x48>icons/AIRApp_48.png</image48x48>
89
- <image128x128>icons/AIRApp_128.png</image128x128>
90
- </icon>
91
- -->
92
-
153
+ <icon>
154
+ <!-- <image16x16>icons/AIRApp_16.png</image16x16> -->
155
+ <!-- <image32x32>icons/AIRApp_32.png</image32x32> -->
156
+ <!-- <image48x48>icons/AIRApp_48.png</image48x48> -->
157
+ <!-- <image128x128>icons/AIRApp_128.png</image128x128> -->
158
+ </icon>
159
+
93
160
  <!--
94
161
  If the handleUpdates element is present in the application descriptor,
95
162
  then the AIR runtime will defer version updates to this application.
96
163
  -->
97
164
  <!-- <handleUpdates/> -->
98
-
165
+
99
166
  <!--
100
- One or more file types to register when this application is installed.
101
- -->
102
-
103
- <!--
104
- <fileTypes>
167
+ Defines the file types for which this application may register.
168
+
169
+ Use the Shell object file registration methods at run-time to set an
170
+ application as the default application for a file type.
171
+
172
+ Icons are optional. If used, the path specified is relative to the
173
+ application root directory. The icon files must be included in the AIR
174
+ file.
175
+ -->
176
+ <fileTypes>
177
+ <!--
105
178
  <fileType>
106
179
  <name>com.example</name>
107
180
  <extension>xmpl</extension>
108
181
  <description>Example file</description>
109
182
  <contentType>example/x-data-type</contentType>
183
+ <icon>
184
+ <image16x16>icons/AIRApp_16.png</image16x16>
185
+ <image32x32>icons/AIRApp_32.png</image32x32>
186
+ <image48x48>icons/AIRApp_48.png</image48x48>
187
+ <image128x128>icons/AIRApp_128.png</image128x128>
188
+ </icon>
110
189
  </fileType>
111
- </fileTypes>
112
- -->
113
-
190
+ -->
191
+ </fileTypes>
114
192
  </application>
@@ -144,14 +144,14 @@ module Airake
144
144
 
145
145
  The '#{cmd.split.first}' command failed to run. This could be because this executable isn't in the path.
146
146
 
147
- To include mxmlc, adl and adt (from Flex Builder):
148
- export PATH="/Applications/Adobe Flex Builder 3/sdks/moxie/bin:$PATH"
147
+ To include mxmlc and fcsh:
148
+ export PATH="/path_to/flex3sdk_b2_100107/bin:$PATH"
149
149
 
150
- To include adl and adt (from Apollo SDK):
151
- export PATH="/Applications/ApolloSDK/bin:$PATH"
150
+ To include adl and adt (from AIR SDK):
151
+ export PATH="/path_to/air_sdk/bin:$PATH"
152
152
 
153
153
  EOS
154
- puts fail_message if error_status != 256 && error_status != 4096
154
+ #puts fail_message if error_status != 256 && error_status != 4096
155
155
  raise "[#{error_status}] Failed to run command: #{cmd}"
156
156
  end
157
157
 
@@ -0,0 +1,39 @@
1
+ namespace :air do
2
+
3
+ desc "Compile"
4
+ task :compile do
5
+ begin
6
+ project = Airake::Project.new_from_rake(ENV)
7
+ fcsh = PatternPark::FCSH.new_from_rake(ENV)
8
+ fcsh.execute([ project.base_dir, project.mxmlc_command ])
9
+ rescue PatternPark::FCSHConnectError => e
10
+ puts "Cannot connect to FCSHD (start by running: rake air:fcshd); Continuing compilation..."
11
+ project.run_mxmlc
12
+ end
13
+ end
14
+
15
+ desc "Test"
16
+ task :test do
17
+ ENV["DEBUG"] = "true" unless ENV.has_key?("DEBUG")
18
+ test_project = Airake::Project.new_from_rake(ENV, true)
19
+ test_project.run_mxmlc
20
+ test_project.run_adl
21
+ end
22
+
23
+ desc "Package"
24
+ task :package => :compile do
25
+ project = Airake::Project.new_from_rake(ENV)
26
+ project.run_adt
27
+ end
28
+
29
+ task :set_debug do
30
+ ENV["DEBUG"] = "true" unless ENV.has_key?("DEBUG")
31
+ end
32
+
33
+ desc "Apollo Debug Luncher"
34
+ task :adl => [ :set_debug, :compile ] do
35
+ project = Airake::Project.new_from_rake(ENV)
36
+ project.run_adl
37
+ end
38
+
39
+ end
@@ -1,37 +1,8 @@
1
+ # Deprecated
2
+ # See fsch.rake
1
3
  namespace :air do
2
4
 
3
- desc "Compile"
4
- task :compile do
5
- begin
6
- project = Airake::Project.new_from_rake(ENV)
7
- fcsh = PatternPark::FCSH.new_from_rake(ENV)
8
- fcsh.execute([ project.base_dir, project.mxmlc_command ])
9
- rescue PatternPark::FCSHConnectError => e
10
- puts "Cannot connect to FCSHD (start by running: rake air:fcshd); Continuing compilation..."
11
- project.run_mxmlc
12
- end
13
- end
14
-
15
- desc "Test"
16
- task :test do
17
- test_project = Airake::Project.new_from_rake(ENV, true)
18
- test_project.run_mxmlc
19
- test_project.run_adl
20
- end
21
-
22
- desc "Package"
23
- task :package => :compile do
24
- project = Airake::Project.new_from_rake(ENV)
25
- project.run_adt
26
- end
27
-
28
- desc "Apollo Debug Luncher"
29
- task :adl => :compile do
30
- project = Airake::Project.new_from_rake(ENV)
31
- project.run_adl
32
- end
33
-
34
- desc "Start the FCSHD process (or use air:fcshd)"
5
+ desc "Start the FCSHD process (DEPRECATED)"
35
6
  task :start_fcshd do
36
7
  puts "Starting FCSHD..."
37
8
  PatternPark::FCSHD.start_from_rake(ENV)
@@ -39,7 +10,7 @@ namespace :air do
39
10
 
40
11
  task :fcshd => :start_fcshd # Alias
41
12
 
42
- desc "Stop the FCSHD process"
13
+ desc "Stop the FCSHD process (DEPRECATED)"
43
14
  task :stop_fcshd do
44
15
  begin
45
16
  fcsh = PatternPark::FCSH.new_from_rake(ENV)
@@ -49,7 +20,7 @@ namespace :air do
49
20
  end
50
21
  end
51
22
 
52
- desc "Restart the FCSHD process"
23
+ desc "Restart the FCSHD process (DEPRECATED)"
53
24
  task :restart_fcshd => [ :stop_fcshd, :sleep, :start_fcshd ]
54
25
 
55
26
  task :sleep do
@@ -0,0 +1,26 @@
1
+ namespace :fcsh do
2
+
3
+ desc "Start the FCSHD process (or use air:fcshd)"
4
+ task :start do
5
+ puts "Starting FCSHD..."
6
+ PatternPark::FCSHD.start_from_rake(ENV)
7
+ end
8
+
9
+ desc "Stop the FCSHD process"
10
+ task :stop do
11
+ begin
12
+ fcsh = PatternPark::FCSH.new_from_rake(ENV)
13
+ fcsh.stop
14
+ rescue
15
+ puts "Could not stop FCSHD"
16
+ end
17
+ end
18
+
19
+ desc "Restart the FCSHD process"
20
+ task :restart => [ :stop, :sleep, :start ]
21
+
22
+ task :sleep do
23
+ sleep 2
24
+ end
25
+
26
+ end
@@ -2,7 +2,7 @@ module Airake #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: airake
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.9
7
- date: 2007-09-07 00:00:00 -04:00
6
+ version: 0.1.10
7
+ date: 2007-10-01 00:00:00 -04:00
8
8
  summary: Adobe AIR tasks
9
9
  require_paths:
10
10
  - lib
@@ -55,7 +55,9 @@ files:
55
55
  - lib/airake/fcshd.rb
56
56
  - lib/airake/project.rb
57
57
  - lib/airake/tasks.rb
58
+ - lib/airake/tasks/air.rake
58
59
  - lib/airake/tasks/deployment.rake
60
+ - lib/airake/tasks/fcsh.rake
59
61
  - lib/airake/version.rb
60
62
  - log/debug.log
61
63
  - script/destroy