sproutcore 1.5.0-java → 1.6.0.beta.2-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. data/.mailmap +32 -0
  2. data/CHANGELOG +15 -0
  3. data/Rakefile +18 -0
  4. data/VERSION.yml +2 -2
  5. data/bin/sc-build +0 -5
  6. data/bin/sc-build-number +0 -5
  7. data/bin/sc-docs +0 -5
  8. data/bin/sc-gen +0 -5
  9. data/bin/sc-init +0 -5
  10. data/bin/sc-manifest +0 -5
  11. data/bin/sc-server +0 -5
  12. data/bin/sproutcore +0 -5
  13. data/lib/frameworks/sproutcore/Buildfile +3 -3
  14. data/lib/frameworks/sproutcore/CHANGELOG.md +21 -0
  15. data/lib/frameworks/sproutcore/README.md +77 -7
  16. data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +0 -2
  17. data/lib/frameworks/sproutcore/frameworks/animation/core.js +3 -2
  18. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
  19. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +1 -17
  20. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +1 -1
  21. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +4 -4
  22. data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
  23. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +23 -21
  24. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +1 -1
  25. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +36 -1
  26. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +126 -7
  27. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +3 -3
  28. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +13 -1
  29. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +2 -2
  30. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +16 -16
  31. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
  32. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1 -34
  33. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +29 -23
  34. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -4
  35. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +20 -23
  36. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
  37. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +26 -0
  38. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +115 -1
  39. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +55 -0
  40. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +49 -1
  41. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +19 -1
  42. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +1 -0
  43. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +2 -0
  44. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
  45. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
  46. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +1 -0
  47. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
  48. data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +7 -82
  49. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +12 -5
  50. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
  51. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
  52. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +17 -0
  53. data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
  54. data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
  55. data/lib/frameworks/sproutcore/frameworks/desktop/core.js +2 -2
  56. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +33 -30
  57. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +12 -11
  58. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +7 -7
  59. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +4 -4
  60. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +20 -20
  61. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +5 -5
  62. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +10 -10
  63. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +24 -23
  64. data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +51 -54
  65. data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +3 -3
  66. data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
  67. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +29 -29
  68. data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
  69. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +3 -3
  70. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +6 -6
  71. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
  72. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +5 -5
  73. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +1 -1
  74. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +5 -5
  75. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +7 -7
  76. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +3 -3
  77. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +7 -5
  78. data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +31 -31
  79. data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
  80. data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +35 -29
  81. data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +2 -2
  82. data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +61 -50
  83. data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
  84. data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
  85. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -1
  86. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
  87. data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
  88. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +12 -12
  89. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +6 -6
  90. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +1 -1
  91. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +7 -9
  92. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +13 -13
  93. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +37 -37
  94. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +3 -2
  95. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +2 -2
  96. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +4 -3
  97. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +7 -6
  98. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +3 -3
  99. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +49 -42
  100. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +1 -1
  101. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +6 -6
  102. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +1 -1
  103. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/default_styles.css +0 -0
  104. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/strings.js +0 -0
  105. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/edit_mode.js +0 -0
  106. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/emptiness.js +0 -0
  107. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form.js +0 -0
  108. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form_row.js +0 -0
  109. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form.js +0 -0
  110. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_checkbox_field.js +0 -0
  111. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_field.js +0 -0
  112. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_label.js +0 -0
  113. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_radio_field.js +0 -0
  114. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_row.js +0 -0
  115. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_text_field.js +0 -0
  116. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form.js +13 -14
  117. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form_row.js +0 -0
  118. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +4 -6
  119. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -1
  120. data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +2 -4
  121. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +8 -12
  122. data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +28 -34
  123. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/system/routes.js +31 -47
  124. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/tests/system/routes.js +0 -0
  125. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
  126. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +15 -21
  127. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +8 -0
  128. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +3 -3
  129. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
  130. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +1 -1
  131. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +3 -3
  132. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +3 -3
  133. data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +66 -133
  134. data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +68 -139
  135. data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +11 -11
  136. data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +23 -29
  137. data/lib/frameworks/sproutcore/lib/index.rhtml +5 -2
  138. data/lib/sproutcore.rb +2 -9
  139. data/lib/sproutcore/builders/minify.rb +5 -5
  140. data/lib/sproutcore/helpers/minifier.rb +6 -10
  141. data/lib/sproutcore/models/target.rb +2 -2
  142. data/lib/sproutcore/rack/proxy.rb +8 -7
  143. data/lib/sproutcore/tools.rb +16 -5
  144. data/spec/lib/builders/html_spec.rb +5 -5
  145. data/sproutcore.gemspec +11 -5
  146. data/vendor/chance/lib/chance.rb +4 -2
  147. data/{lib/sproutcore/vendor → vendor}/jsdoc/README.txt +0 -0
  148. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame.js +0 -0
  149. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Chain.js +0 -0
  150. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Dumper.js +0 -0
  151. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Hash.js +0 -0
  152. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Link.js +0 -0
  153. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Namespace.js +0 -0
  154. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Opt.js +0 -0
  155. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Reflection.js +0 -0
  156. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/String.js +0 -0
  157. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Testrun.js +0 -0
  158. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
  159. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
  160. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
  161. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
  162. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
  163. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC.js +0 -0
  164. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
  165. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
  166. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
  167. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
  168. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
  169. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
  170. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
  171. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
  172. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
  173. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
  174. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
  175. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
  176. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
  177. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
  178. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
  179. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/main.js +0 -0
  180. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
  181. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
  182. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/functionCall.js +0 -0
  183. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
  184. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
  185. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
  186. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
  187. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
  188. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/run.js +0 -0
  189. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/TestDoc.js +0 -0
  190. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/runner.js +0 -0
  191. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test.js +0 -0
  192. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/addon.js +0 -0
  193. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/anon_inner.js +0 -0
  194. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments.js +0 -0
  195. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments2.js +0 -0
  196. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows.js +0 -0
  197. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows2.js +0 -0
  198. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/config.js +0 -0
  199. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/constructs.js +0 -0
  200. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding.js +0 -0
  201. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding_other.js +0 -0
  202. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_anon.js +0 -0
  203. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_nested.js +0 -0
  204. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/global.js +0 -0
  205. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/globals.js +0 -0
  206. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/ignore.js +0 -0
  207. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/inner.js +0 -0
  208. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
  209. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/lend.js +0 -0
  210. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof.js +0 -0
  211. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
  212. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/name.js +0 -0
  213. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/namespace_nested.js +0 -0
  214. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/nocode.js +0 -0
  215. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/oblit_anon.js +0 -0
  216. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/overview.js +0 -0
  217. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/param_inline.js +0 -0
  218. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/params_optional.js +0 -0
  219. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype.js +0 -0
  220. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_nested.js +0 -0
  221. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
  222. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
  223. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/public.js +0 -0
  224. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared.js +0 -0
  225. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared2.js +0 -0
  226. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shortcuts.js +0 -0
  227. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/static_this.js +0 -0
  228. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/synonyms.js +0 -0
  229. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/tosource.js +0 -0
  230. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/variable_redefine.js +0 -0
  231. data/{lib/sproutcore/vendor → vendor}/jsdoc/changes.txt +0 -0
  232. data/{lib/sproutcore/vendor → vendor}/jsdoc/conf/sample.conf +0 -0
  233. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build.xml +0 -0
  234. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build_1.4.xml +0 -0
  235. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/classes/js.jar +0 -0
  236. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
  237. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsRun.java +0 -0
  238. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsdebug.jar +0 -0
  239. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsrun.jar +0 -0
  240. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/TestDoc.js +0 -0
  241. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/runner.js +0 -0
  242. data/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
  243. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/addon.js +0 -0
  244. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/anon_inner.js +0 -0
  245. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments.js +0 -0
  246. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments2.js +0 -0
  247. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows.js +0 -0
  248. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows2.js +0 -0
  249. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/config.js +0 -0
  250. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/constructs.js +0 -0
  251. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding.js +0 -0
  252. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding_other.js +0 -0
  253. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_anon.js +0 -0
  254. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_nested.js +0 -0
  255. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/global.js +0 -0
  256. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/globals.js +0 -0
  257. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/ignore.js +0 -0
  258. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/inner.js +0 -0
  259. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/jsdoc_test.js +0 -0
  260. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/lend.js +0 -0
  261. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof.js +0 -0
  262. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof_constructor.js +0 -0
  263. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/name.js +0 -0
  264. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/namespace_nested.js +0 -0
  265. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/nocode.js +0 -0
  266. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/oblit_anon.js +0 -0
  267. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/overview.js +0 -0
  268. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/param_inline.js +0 -0
  269. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/params_optional.js +0 -0
  270. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype.js +0 -0
  271. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_nested.js +0 -0
  272. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit.js +0 -0
  273. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
  274. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/public.js +0 -0
  275. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared.js +0 -0
  276. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared2.js +0 -0
  277. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shortcuts.js +0 -0
  278. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/static_this.js +0 -0
  279. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/synonyms.js +0 -0
  280. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/tosource.js +0 -0
  281. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/variable_redefine.js +0 -0
  282. data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
  283. metadata +169 -178
  284. data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -148
  285. data/lib/sproutcore/vendor/github_gem_lint.rb +0 -22
  286. data/vendor/sproutcore/SCCompiler.jar +0 -0
  287. data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
  288. data/vendor/sproutcore/lib/yuicompressor-2.4.2.jar +0 -0
  289. data/vendor/sproutcore/src/SCCompiler/build.xml +0 -74
  290. data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
  291. data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
  292. data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar +0 -0
  293. data/vendor/sproutcore/src/SCCompiler/manifest.mf +0 -3
  294. data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +0 -894
  295. data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +0 -8
  296. data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
  297. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +0 -10
  298. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +0 -4
  299. data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +0 -90
  300. data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +0 -15
  301. data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +0 -348
@@ -1,148 +0,0 @@
1
- // ==========================================================================
2
- // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
- // Portions ©2008-2011 Apple Inc. All rights reserved.
5
- // License: Licensed under MIT license (see license.js)
6
- // ==========================================================================
7
-
8
- /*
9
- TODO revisit this to see if these classnames are usable
10
- */
11
-
12
- /** @class
13
-
14
- Implements a customized file input by creating a standard file input in a
15
- transparent iframe over top of a SC.ButtonView.
16
-
17
- SC.FieldView uses the SC.Control mixin which will apply CSS
18
- classnames when the state of the file view changes:
19
-
20
- - active when button is active
21
- - sel when button is toggled to a selected state
22
-
23
- @extends SC.FieldView
24
- @since SproutCore 1.0
25
- @author Tyler Keating
26
- */
27
- SC.FileView = SC.FieldView.extend(
28
- /** @scope SC.FileView.prototype */ {
29
-
30
- /**
31
- @type Array
32
- @default ['sc-file-view']
33
- @see SC.View#classNames
34
- */
35
- classNames: ['sc-file-view'],
36
-
37
- /** @private */
38
- childViews: ['button', 'form'],
39
-
40
-
41
- // ..........................................................
42
- // Properties
43
- //
44
-
45
- /**
46
- @type Boolean
47
- @default YES
48
- */
49
- autoSubmit: YES,
50
-
51
- /**
52
- The name of the action you want triggered when the button is pressed.
53
-
54
- This property is used in conjunction with the target property to execute
55
- a method when a regular button is pressed. These properties are not
56
- relevant when the button is used in toggle mode.
57
-
58
- If you do not set a target, then pressing a button will cause the
59
- responder chain to search for a view that implements the action you name
60
- here. If you set a target, then the button will try to call the method
61
- on the target itself.
62
-
63
- For legacy support, you can also set the action property to a function.
64
- Doing so will cause the function itself to be called when the button is
65
- clicked. It is generally better to use the target/action approach and
66
- to implement your code in a controller of some type.
67
-
68
- @type String
69
- @default 'uploadImage'
70
- */
71
- action: 'uploadImage',
72
-
73
- /**
74
- The target object to invoke the action on when the button is pressed.
75
-
76
- If you set this target, the action will be called on the target object
77
- directly when the button is clicked. If you leave this property set to
78
- null, then the button will search the responder chain for a view that
79
- implements the action when the button is pressed instead.
80
-
81
- @type Object
82
- @default null
83
- */
84
- target: null,
85
-
86
- /**
87
- @type String
88
- @default "Choose File"
89
- */
90
- title: "Choose File",
91
-
92
-
93
- // ..........................................................
94
- // Views
95
- //
96
-
97
- /** @private */
98
- button: SC.ButtonView.design({
99
- title: 'Choose File',
100
- theme: 'capsule'
101
- }),
102
-
103
- /** @private */
104
- form: SC.View.design({
105
- tagName: 'form',
106
-
107
- /** @private */
108
- render: function(context, firstTime) {
109
- context.attr('method', 'post').attr('action', "javascript:;").attr('enctype', 'multipart/form-data');
110
- sc_super();
111
- },
112
-
113
- childViews: ['input'],
114
-
115
- input: SC.View.design({
116
- tagName: 'input',
117
-
118
- /** @private */
119
- render: function(context, firstTime) {
120
- context.attr('type', 'file').end();
121
- sc_super();
122
- }
123
- })
124
- }),
125
-
126
-
127
- // ..........................................................
128
- // FieldView Overrides
129
- //
130
-
131
- /** @private
132
- Since it is impossible to set the value of file inputs, don't attempt it.
133
- */
134
- setFieldValue: function(newValue) {
135
- SC.Logger.log("SC.FileView: setFieldValue: %@ does nothing".fmt(newValue));
136
- //if (newValue) throw SC.$error('SC.FileView can not set the value of the file field');
137
- },
138
-
139
- /** @private */
140
- fieldValueDidChange: function(partialChange) {
141
- sc_super();
142
- if (this.get('autoSubmit')) {
143
- //this.form.submit();
144
-
145
- var resp = SC.Request.postUrl('/proxy/user/update_image').json().async(NO).send({picture: this.get('value')});
146
- }
147
- }
148
- });
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'yaml'
3
-
4
- if ARGV.size < 1
5
- puts "Usage: github-test.rb my-project.gemspec"
6
- exit
7
- end
8
-
9
- require 'rubygems/specification'
10
- data = File.read(ARGV[0])
11
- spec = nil
12
-
13
- if data !~ %r{!ruby/object:Gem::Specification}
14
- Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
15
- else
16
- spec = YAML.load(data)
17
- end
18
-
19
- spec.validate
20
-
21
- puts spec
22
- puts "OK"
Binary file
@@ -1,74 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- You may freely edit this file. See commented blocks below for -->
3
- <!-- some examples of how to customize the build. -->
4
- <!-- (If you delete it and reopen the project it will be recreated.) -->
5
- <!-- By default, only the Clean and Build commands use this build script. -->
6
- <!-- Commands such as Run, Debug, and Test only use this build script if -->
7
- <!-- the Compile on Save feature is turned off for the project. -->
8
- <!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9
- <!-- in the project's Project Properties dialog box.-->
10
- <project name="SCCompiler" default="default" basedir=".">
11
- <description>Builds, tests, and runs the project SCCompiler.</description>
12
- <import file="nbproject/build-impl.xml"/>
13
- <!--
14
-
15
- There exist several targets which are by default empty and which can be
16
- used for execution of your tasks. These targets are usually executed
17
- before and after some main targets. They are:
18
-
19
- -pre-init: called before initialization of project properties
20
- -post-init: called after initialization of project properties
21
- -pre-compile: called before javac compilation
22
- -post-compile: called after javac compilation
23
- -pre-compile-single: called before javac compilation of single file
24
- -post-compile-single: called after javac compilation of single file
25
- -pre-compile-test: called before javac compilation of JUnit tests
26
- -post-compile-test: called after javac compilation of JUnit tests
27
- -pre-compile-test-single: called before javac compilation of single JUnit test
28
- -post-compile-test-single: called after javac compilation of single JUunit test
29
- -pre-jar: called before JAR building
30
- -post-jar: called after JAR building
31
- -post-clean: called after cleaning build products
32
-
33
- (Targets beginning with '-' are not intended to be called on their own.)
34
-
35
- Example of inserting an obfuscator after compilation could look like this:
36
-
37
- <target name="-post-compile">
38
- <obfuscate>
39
- <fileset dir="${build.classes.dir}"/>
40
- </obfuscate>
41
- </target>
42
-
43
- For list of available properties check the imported
44
- nbproject/build-impl.xml file.
45
-
46
-
47
- Another way to customize the build is by overriding existing main targets.
48
- The targets of interest are:
49
-
50
- -init-macrodef-javac: defines macro for javac compilation
51
- -init-macrodef-junit: defines macro for junit execution
52
- -init-macrodef-debug: defines macro for class debugging
53
- -init-macrodef-java: defines macro for class execution
54
- -do-jar-with-manifest: JAR building (if you are using a manifest)
55
- -do-jar-without-manifest: JAR building (if you are not using a manifest)
56
- run: execution of project
57
- -javadoc-build: Javadoc generation
58
- test-report: JUnit report generation
59
-
60
- An example of overriding the target for project execution could look like this:
61
-
62
- <target name="run" depends="SCCompiler-impl.jar">
63
- <exec dir="bin" executable="launcher.exe">
64
- <arg file="${dist.jar}"/>
65
- </exec>
66
- </target>
67
-
68
- Notice that the overridden target depends on the jar target and not only on
69
- the compile target as the regular run target does. Again, for a list of available
70
- properties which you can use, check the target you are overriding in the
71
- nbproject/build-impl.xml file.
72
-
73
- -->
74
- </project>
@@ -1,3 +0,0 @@
1
- Manifest-Version: 1.0
2
- X-COMMENT: Main-Class will be added automatically by build
3
-
@@ -1,894 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- *** GENERATED FROM project.xml - DO NOT EDIT ***
4
- *** EDIT ../build.xml INSTEAD ***
5
-
6
- For the purpose of easier reading the script
7
- is divided into following sections:
8
-
9
- - initialization
10
- - compilation
11
- - jar
12
- - execution
13
- - debugging
14
- - javadoc
15
- - junit compilation
16
- - junit execution
17
- - junit debugging
18
- - applet
19
- - cleanup
20
-
21
- -->
22
- <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="SCCompiler-impl">
23
- <fail message="Please build using Ant 1.7.1 or higher.">
24
- <condition>
25
- <not>
26
- <antversion atleast="1.7.1"/>
27
- </not>
28
- </condition>
29
- </fail>
30
- <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
31
- <!--
32
- ======================
33
- INITIALIZATION SECTION
34
- ======================
35
- -->
36
- <target name="-pre-init">
37
- <!-- Empty placeholder for easier customization. -->
38
- <!-- You can override this target in the ../build.xml file. -->
39
- </target>
40
- <target depends="-pre-init" name="-init-private">
41
- <property file="nbproject/private/config.properties"/>
42
- <property file="nbproject/private/configs/${config}.properties"/>
43
- <property file="nbproject/private/private.properties"/>
44
- </target>
45
- <target depends="-pre-init,-init-private" name="-init-user">
46
- <property file="${user.properties.file}"/>
47
- <!-- The two properties below are usually overridden -->
48
- <!-- by the active platform. Just a fallback. -->
49
- <property name="default.javac.source" value="1.4"/>
50
- <property name="default.javac.target" value="1.4"/>
51
- </target>
52
- <target depends="-pre-init,-init-private,-init-user" name="-init-project">
53
- <property file="nbproject/configs/${config}.properties"/>
54
- <property file="nbproject/project.properties"/>
55
- </target>
56
- <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
57
- <available file="${manifest.file}" property="manifest.available"/>
58
- <available file="${application.splash}" property="splashscreen.available"/>
59
- <condition property="main.class.available">
60
- <and>
61
- <isset property="main.class"/>
62
- <not>
63
- <equals arg1="${main.class}" arg2="" trim="true"/>
64
- </not>
65
- </and>
66
- </condition>
67
- <condition property="manifest.available+main.class">
68
- <and>
69
- <isset property="manifest.available"/>
70
- <isset property="main.class.available"/>
71
- </and>
72
- </condition>
73
- <condition property="do.mkdist">
74
- <and>
75
- <isset property="libs.CopyLibs.classpath"/>
76
- <not>
77
- <istrue value="${mkdist.disabled}"/>
78
- </not>
79
- </and>
80
- </condition>
81
- <condition property="manifest.available+main.class+mkdist.available">
82
- <and>
83
- <istrue value="${manifest.available+main.class}"/>
84
- <isset property="do.mkdist"/>
85
- </and>
86
- </condition>
87
- <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
88
- <and>
89
- <istrue value="${manifest.available+main.class+mkdist.available}"/>
90
- <istrue value="${splashscreen.available}"/>
91
- </and>
92
- </condition>
93
- <condition property="do.archive">
94
- <not>
95
- <istrue value="${jar.archive.disabled}"/>
96
- </not>
97
- </condition>
98
- <condition property="do.archive+manifest.available">
99
- <and>
100
- <isset property="manifest.available"/>
101
- <istrue value="${do.archive}"/>
102
- </and>
103
- </condition>
104
- <condition property="do.archive+manifest.available+main.class">
105
- <and>
106
- <istrue value="${manifest.available+main.class}"/>
107
- <istrue value="${do.archive}"/>
108
- </and>
109
- </condition>
110
- <condition property="do.archive+manifest.available+main.class+mkdist.available">
111
- <and>
112
- <istrue value="${manifest.available+main.class+mkdist.available}"/>
113
- <istrue value="${do.archive}"/>
114
- </and>
115
- </condition>
116
- <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
117
- <and>
118
- <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
119
- <istrue value="${do.archive}"/>
120
- </and>
121
- </condition>
122
- <condition property="have.tests">
123
- <or>
124
- <available file="${test.src.dir}"/>
125
- </or>
126
- </condition>
127
- <condition property="have.sources">
128
- <or>
129
- <available file="${src.dir}"/>
130
- </or>
131
- </condition>
132
- <condition property="netbeans.home+have.tests">
133
- <and>
134
- <isset property="netbeans.home"/>
135
- <isset property="have.tests"/>
136
- </and>
137
- </condition>
138
- <condition property="no.javadoc.preview">
139
- <and>
140
- <isset property="javadoc.preview"/>
141
- <isfalse value="${javadoc.preview}"/>
142
- </and>
143
- </condition>
144
- <property name="run.jvmargs" value=""/>
145
- <property name="javac.compilerargs" value=""/>
146
- <property name="work.dir" value="${basedir}"/>
147
- <condition property="no.deps">
148
- <and>
149
- <istrue value="${no.dependencies}"/>
150
- </and>
151
- </condition>
152
- <property name="javac.debug" value="true"/>
153
- <property name="javadoc.preview" value="true"/>
154
- <property name="application.args" value=""/>
155
- <property name="source.encoding" value="${file.encoding}"/>
156
- <property name="runtime.encoding" value="${source.encoding}"/>
157
- <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
158
- <and>
159
- <isset property="javadoc.encoding"/>
160
- <not>
161
- <equals arg1="${javadoc.encoding}" arg2=""/>
162
- </not>
163
- </and>
164
- </condition>
165
- <property name="javadoc.encoding.used" value="${source.encoding}"/>
166
- <property name="includes" value="**"/>
167
- <property name="excludes" value=""/>
168
- <property name="do.depend" value="false"/>
169
- <condition property="do.depend.true">
170
- <istrue value="${do.depend}"/>
171
- </condition>
172
- <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
173
- <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
174
- <length length="0" string="${endorsed.classpath}" when="greater"/>
175
- </condition>
176
- <property name="javac.fork" value="false"/>
177
- <property name="jar.index" value="false"/>
178
- <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
179
- </target>
180
- <target name="-post-init">
181
- <!-- Empty placeholder for easier customization. -->
182
- <!-- You can override this target in the ../build.xml file. -->
183
- </target>
184
- <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
185
- <fail unless="src.dir">Must set src.dir</fail>
186
- <fail unless="test.src.dir">Must set test.src.dir</fail>
187
- <fail unless="build.dir">Must set build.dir</fail>
188
- <fail unless="dist.dir">Must set dist.dir</fail>
189
- <fail unless="build.classes.dir">Must set build.classes.dir</fail>
190
- <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
191
- <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
192
- <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
193
- <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
194
- <fail unless="dist.jar">Must set dist.jar</fail>
195
- </target>
196
- <target name="-init-macrodef-property">
197
- <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
198
- <attribute name="name"/>
199
- <attribute name="value"/>
200
- <sequential>
201
- <property name="@{name}" value="${@{value}}"/>
202
- </sequential>
203
- </macrodef>
204
- </target>
205
- <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
206
- <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
207
- <attribute default="${src.dir}" name="srcdir"/>
208
- <attribute default="${build.classes.dir}" name="destdir"/>
209
- <attribute default="${javac.classpath}" name="classpath"/>
210
- <attribute default="${javac.processorpath}" name="processorpath"/>
211
- <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
212
- <attribute default="${includes}" name="includes"/>
213
- <attribute default="${excludes}" name="excludes"/>
214
- <attribute default="${javac.debug}" name="debug"/>
215
- <attribute default="${empty.dir}" name="sourcepath"/>
216
- <attribute default="${empty.dir}" name="gensrcdir"/>
217
- <element name="customize" optional="true"/>
218
- <sequential>
219
- <property location="${build.dir}/empty" name="empty.dir"/>
220
- <mkdir dir="${empty.dir}"/>
221
- <mkdir dir="@{apgeneratedsrcdir}"/>
222
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
223
- <src>
224
- <dirset dir="@{gensrcdir}" erroronmissingdir="false">
225
- <include name="*"/>
226
- </dirset>
227
- </src>
228
- <classpath>
229
- <path path="@{classpath}"/>
230
- </classpath>
231
- <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
232
- <compilerarg line="${javac.compilerargs}"/>
233
- <compilerarg value="-processorpath"/>
234
- <compilerarg path="@{processorpath}:${empty.dir}"/>
235
- <compilerarg line="${ap.processors.internal}"/>
236
- <compilerarg line="${annotation.processing.processor.options}"/>
237
- <compilerarg value="-s"/>
238
- <compilerarg path="@{apgeneratedsrcdir}"/>
239
- <compilerarg line="${ap.proc.none.internal}"/>
240
- <customize/>
241
- </javac>
242
- </sequential>
243
- </macrodef>
244
- </target>
245
- <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
246
- <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
247
- <attribute default="${src.dir}" name="srcdir"/>
248
- <attribute default="${build.classes.dir}" name="destdir"/>
249
- <attribute default="${javac.classpath}" name="classpath"/>
250
- <attribute default="${javac.processorpath}" name="processorpath"/>
251
- <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
252
- <attribute default="${includes}" name="includes"/>
253
- <attribute default="${excludes}" name="excludes"/>
254
- <attribute default="${javac.debug}" name="debug"/>
255
- <attribute default="${empty.dir}" name="sourcepath"/>
256
- <attribute default="${empty.dir}" name="gensrcdir"/>
257
- <element name="customize" optional="true"/>
258
- <sequential>
259
- <property location="${build.dir}/empty" name="empty.dir"/>
260
- <mkdir dir="${empty.dir}"/>
261
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
262
- <src>
263
- <dirset dir="@{gensrcdir}" erroronmissingdir="false">
264
- <include name="*"/>
265
- </dirset>
266
- </src>
267
- <classpath>
268
- <path path="@{classpath}"/>
269
- </classpath>
270
- <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
271
- <compilerarg line="${javac.compilerargs}"/>
272
- <customize/>
273
- </javac>
274
- </sequential>
275
- </macrodef>
276
- </target>
277
- <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
278
- <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
279
- <attribute default="${src.dir}" name="srcdir"/>
280
- <attribute default="${build.classes.dir}" name="destdir"/>
281
- <attribute default="${javac.classpath}" name="classpath"/>
282
- <sequential>
283
- <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
284
- <classpath>
285
- <path path="@{classpath}"/>
286
- </classpath>
287
- </depend>
288
- </sequential>
289
- </macrodef>
290
- <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
291
- <attribute default="${build.classes.dir}" name="destdir"/>
292
- <sequential>
293
- <fail unless="javac.includes">Must set javac.includes</fail>
294
- <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
295
- <path>
296
- <filelist dir="@{destdir}" files="${javac.includes}"/>
297
- </path>
298
- <globmapper from="*.java" to="*.class"/>
299
- </pathconvert>
300
- <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
301
- <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
302
- <delete>
303
- <files includesfile="${javac.includesfile.binary}"/>
304
- </delete>
305
- <delete file="${javac.includesfile.binary}"/>
306
- </sequential>
307
- </macrodef>
308
- </target>
309
- <target name="-init-macrodef-junit">
310
- <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
311
- <attribute default="${includes}" name="includes"/>
312
- <attribute default="${excludes}" name="excludes"/>
313
- <attribute default="**" name="testincludes"/>
314
- <sequential>
315
- <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
316
- <batchtest todir="${build.test.results.dir}">
317
- <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
318
- <filename name="@{testincludes}"/>
319
- </fileset>
320
- </batchtest>
321
- <classpath>
322
- <path path="${run.test.classpath}"/>
323
- </classpath>
324
- <syspropertyset>
325
- <propertyref prefix="test-sys-prop."/>
326
- <mapper from="test-sys-prop.*" to="*" type="glob"/>
327
- </syspropertyset>
328
- <formatter type="brief" usefile="false"/>
329
- <formatter type="xml"/>
330
- <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
331
- <jvmarg line="${run.jvmargs}"/>
332
- </junit>
333
- </sequential>
334
- </macrodef>
335
- </target>
336
- <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
337
- <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
338
- <attribute default="${main.class}" name="name"/>
339
- <attribute default="${debug.classpath}" name="classpath"/>
340
- <attribute default="" name="stopclassname"/>
341
- <sequential>
342
- <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
343
- <classpath>
344
- <path path="@{classpath}"/>
345
- </classpath>
346
- </nbjpdastart>
347
- </sequential>
348
- </macrodef>
349
- <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
350
- <attribute default="${build.classes.dir}" name="dir"/>
351
- <sequential>
352
- <nbjpdareload>
353
- <fileset dir="@{dir}" includes="${fix.classes}">
354
- <include name="${fix.includes}*.class"/>
355
- </fileset>
356
- </nbjpdareload>
357
- </sequential>
358
- </macrodef>
359
- </target>
360
- <target name="-init-debug-args">
361
- <property name="version-output" value="java version &quot;${ant.java.version}"/>
362
- <condition property="have-jdk-older-than-1.4">
363
- <or>
364
- <contains string="${version-output}" substring="java version &quot;1.0"/>
365
- <contains string="${version-output}" substring="java version &quot;1.1"/>
366
- <contains string="${version-output}" substring="java version &quot;1.2"/>
367
- <contains string="${version-output}" substring="java version &quot;1.3"/>
368
- </or>
369
- </condition>
370
- <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
371
- <istrue value="${have-jdk-older-than-1.4}"/>
372
- </condition>
373
- <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
374
- <os family="windows"/>
375
- </condition>
376
- <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
377
- <isset property="debug.transport"/>
378
- </condition>
379
- </target>
380
- <target depends="-init-debug-args" name="-init-macrodef-debug">
381
- <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
382
- <attribute default="${main.class}" name="classname"/>
383
- <attribute default="${debug.classpath}" name="classpath"/>
384
- <element name="customize" optional="true"/>
385
- <sequential>
386
- <java classname="@{classname}" dir="${work.dir}" fork="true">
387
- <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
388
- <jvmarg line="${debug-args-line}"/>
389
- <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
390
- <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
391
- <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
392
- <jvmarg line="${run.jvmargs}"/>
393
- <classpath>
394
- <path path="@{classpath}"/>
395
- </classpath>
396
- <syspropertyset>
397
- <propertyref prefix="run-sys-prop."/>
398
- <mapper from="run-sys-prop.*" to="*" type="glob"/>
399
- </syspropertyset>
400
- <customize/>
401
- </java>
402
- </sequential>
403
- </macrodef>
404
- </target>
405
- <target name="-init-macrodef-java">
406
- <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
407
- <attribute default="${main.class}" name="classname"/>
408
- <attribute default="${run.classpath}" name="classpath"/>
409
- <element name="customize" optional="true"/>
410
- <sequential>
411
- <java classname="@{classname}" dir="${work.dir}" fork="true">
412
- <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
413
- <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
414
- <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
415
- <jvmarg line="${run.jvmargs}"/>
416
- <classpath>
417
- <path path="@{classpath}"/>
418
- </classpath>
419
- <syspropertyset>
420
- <propertyref prefix="run-sys-prop."/>
421
- <mapper from="run-sys-prop.*" to="*" type="glob"/>
422
- </syspropertyset>
423
- <customize/>
424
- </java>
425
- </sequential>
426
- </macrodef>
427
- </target>
428
- <target name="-init-macrodef-copylibs">
429
- <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
430
- <element name="customize" optional="true"/>
431
- <sequential>
432
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
433
- <pathconvert property="run.classpath.without.build.classes.dir">
434
- <path path="${run.classpath}"/>
435
- <map from="${build.classes.dir.resolved}" to=""/>
436
- </pathconvert>
437
- <pathconvert pathsep=" " property="jar.classpath">
438
- <path path="${run.classpath.without.build.classes.dir}"/>
439
- <chainedmapper>
440
- <flattenmapper/>
441
- <globmapper from="*" to="lib/*"/>
442
- </chainedmapper>
443
- </pathconvert>
444
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
445
- <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
446
- <fileset dir="${build.classes.dir}"/>
447
- <manifest>
448
- <attribute name="Class-Path" value="${jar.classpath}"/>
449
- <customize/>
450
- </manifest>
451
- </copylibs>
452
- </sequential>
453
- </macrodef>
454
- </target>
455
- <target name="-init-presetdef-jar">
456
- <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
457
- <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
458
- <j2seproject1:fileset dir="${build.classes.dir}"/>
459
- </jar>
460
- </presetdef>
461
- </target>
462
- <target name="-init-ap-cmdline-properties">
463
- <property name="annotation.processing.enabled" value="true"/>
464
- <property name="annotation.processing.processors.list" value=""/>
465
- <property name="annotation.processing.processor.options" value=""/>
466
- <property name="annotation.processing.run.all.processors" value="true"/>
467
- <property name="javac.processorpath" value="${javac.classpath}"/>
468
- <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
469
- <condition property="ap.supported.internal" value="true">
470
- <not>
471
- <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
472
- </not>
473
- </condition>
474
- </target>
475
- <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
476
- <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
477
- <isfalse value="${annotation.processing.run.all.processors}"/>
478
- </condition>
479
- <condition else="" property="ap.proc.none.internal" value="-proc:none">
480
- <isfalse value="${annotation.processing.enabled}"/>
481
- </condition>
482
- </target>
483
- <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
484
- <property name="ap.cmd.line.internal" value=""/>
485
- </target>
486
- <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
487
- <!--
488
- ===================
489
- COMPILATION SECTION
490
- ===================
491
- -->
492
- <target name="-deps-jar-init" unless="built-jar.properties">
493
- <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
494
- <delete file="${built-jar.properties}" quiet="true"/>
495
- </target>
496
- <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
497
- <echo level="warn" message="Cycle detected: SCCompiler was already built"/>
498
- </target>
499
- <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
500
- <mkdir dir="${build.dir}"/>
501
- <touch file="${built-jar.properties}" verbose="false"/>
502
- <property file="${built-jar.properties}" prefix="already.built.jar."/>
503
- <antcall target="-warn-already-built-jar"/>
504
- <propertyfile file="${built-jar.properties}">
505
- <entry key="${basedir}" value=""/>
506
- </propertyfile>
507
- </target>
508
- <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
509
- <target depends="init" name="-check-automatic-build">
510
- <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
511
- </target>
512
- <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
513
- <antcall target="clean"/>
514
- </target>
515
- <target depends="init,deps-jar" name="-pre-pre-compile">
516
- <mkdir dir="${build.classes.dir}"/>
517
- </target>
518
- <target name="-pre-compile">
519
- <!-- Empty placeholder for easier customization. -->
520
- <!-- You can override this target in the ../build.xml file. -->
521
- </target>
522
- <target if="do.depend.true" name="-compile-depend">
523
- <pathconvert property="build.generated.subdirs">
524
- <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
525
- <include name="*"/>
526
- </dirset>
527
- </pathconvert>
528
- <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
529
- </target>
530
- <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
531
- <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
532
- <copy todir="${build.classes.dir}">
533
- <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
534
- </copy>
535
- </target>
536
- <target if="has.persistence.xml" name="-copy-persistence-xml">
537
- <mkdir dir="${build.classes.dir}/META-INF"/>
538
- <copy todir="${build.classes.dir}/META-INF">
539
- <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
540
- </copy>
541
- </target>
542
- <target name="-post-compile">
543
- <!-- Empty placeholder for easier customization. -->
544
- <!-- You can override this target in the ../build.xml file. -->
545
- </target>
546
- <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
547
- <target name="-pre-compile-single">
548
- <!-- Empty placeholder for easier customization. -->
549
- <!-- You can override this target in the ../build.xml file. -->
550
- </target>
551
- <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
552
- <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
553
- <j2seproject3:force-recompile/>
554
- <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
555
- </target>
556
- <target name="-post-compile-single">
557
- <!-- Empty placeholder for easier customization. -->
558
- <!-- You can override this target in the ../build.xml file. -->
559
- </target>
560
- <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
561
- <!--
562
- ====================
563
- JAR BUILDING SECTION
564
- ====================
565
- -->
566
- <target depends="init" name="-pre-pre-jar">
567
- <dirname file="${dist.jar}" property="dist.jar.dir"/>
568
- <mkdir dir="${dist.jar.dir}"/>
569
- </target>
570
- <target name="-pre-jar">
571
- <!-- Empty placeholder for easier customization. -->
572
- <!-- You can override this target in the ../build.xml file. -->
573
- </target>
574
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
575
- <j2seproject1:jar/>
576
- </target>
577
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
578
- <j2seproject1:jar manifest="${manifest.file}"/>
579
- </target>
580
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
581
- <j2seproject1:jar manifest="${manifest.file}">
582
- <j2seproject1:manifest>
583
- <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
584
- </j2seproject1:manifest>
585
- </j2seproject1:jar>
586
- <echo>To run this application from the command line without Ant, try:</echo>
587
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
588
- <property location="${dist.jar}" name="dist.jar.resolved"/>
589
- <pathconvert property="run.classpath.with.dist.jar">
590
- <path path="${run.classpath}"/>
591
- <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
592
- </pathconvert>
593
- <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
594
- </target>
595
- <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
596
- <basename file="${application.splash}" property="splashscreen.basename"/>
597
- <mkdir dir="${build.classes.dir}/META-INF"/>
598
- <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
599
- <j2seproject3:copylibs>
600
- <customize>
601
- <attribute name="Main-Class" value="${main.class}"/>
602
- <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
603
- </customize>
604
- </j2seproject3:copylibs>
605
- <echo>To run this application from the command line without Ant, try:</echo>
606
- <property location="${dist.jar}" name="dist.jar.resolved"/>
607
- <echo>java -jar "${dist.jar.resolved}"</echo>
608
- </target>
609
- <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
610
- <j2seproject3:copylibs>
611
- <customize>
612
- <attribute name="Main-Class" value="${main.class}"/>
613
- </customize>
614
- </j2seproject3:copylibs>
615
- <echo>To run this application from the command line without Ant, try:</echo>
616
- <property location="${dist.jar}" name="dist.jar.resolved"/>
617
- <echo>java -jar "${dist.jar.resolved}"</echo>
618
- </target>
619
- <target name="-post-jar">
620
- <!-- Empty placeholder for easier customization. -->
621
- <!-- You can override this target in the ../build.xml file. -->
622
- </target>
623
- <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
624
- <!--
625
- =================
626
- EXECUTION SECTION
627
- =================
628
- -->
629
- <target depends="init,compile" description="Run a main class." name="run">
630
- <j2seproject1:java>
631
- <customize>
632
- <arg line="${application.args}"/>
633
- </customize>
634
- </j2seproject1:java>
635
- </target>
636
- <target name="-do-not-recompile">
637
- <property name="javac.includes.binary" value=""/>
638
- </target>
639
- <target depends="init,compile-single" name="run-single">
640
- <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
641
- <j2seproject1:java classname="${run.class}"/>
642
- </target>
643
- <target depends="init,compile-test-single" name="run-test-with-main">
644
- <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
645
- <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
646
- </target>
647
- <!--
648
- =================
649
- DEBUGGING SECTION
650
- =================
651
- -->
652
- <target depends="init" if="netbeans.home" name="-debug-start-debugger">
653
- <j2seproject1:nbjpdastart name="${debug.class}"/>
654
- </target>
655
- <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
656
- <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
657
- </target>
658
- <target depends="init,compile" name="-debug-start-debuggee">
659
- <j2seproject3:debug>
660
- <customize>
661
- <arg line="${application.args}"/>
662
- </customize>
663
- </j2seproject3:debug>
664
- </target>
665
- <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
666
- <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
667
- <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
668
- </target>
669
- <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
670
- <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
671
- <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
672
- <j2seproject3:debug classname="${debug.class}"/>
673
- </target>
674
- <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
675
- <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
676
- <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
677
- <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
678
- </target>
679
- <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
680
- <target depends="init" name="-pre-debug-fix">
681
- <fail unless="fix.includes">Must set fix.includes</fail>
682
- <property name="javac.includes" value="${fix.includes}.java"/>
683
- </target>
684
- <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
685
- <j2seproject1:nbjpdareload/>
686
- </target>
687
- <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
688
- <!--
689
- ===============
690
- JAVADOC SECTION
691
- ===============
692
- -->
693
- <target depends="init" if="have.sources" name="-javadoc-build">
694
- <mkdir dir="${dist.javadoc.dir}"/>
695
- <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
696
- <classpath>
697
- <path path="${javac.classpath}"/>
698
- </classpath>
699
- <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
700
- <filename name="**/*.java"/>
701
- </fileset>
702
- <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
703
- <include name="**/*.java"/>
704
- </fileset>
705
- </javadoc>
706
- <copy todir="${dist.javadoc.dir}">
707
- <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
708
- <filename name="**/doc-files/**"/>
709
- </fileset>
710
- <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
711
- <include name="**/doc-files/**"/>
712
- </fileset>
713
- </copy>
714
- </target>
715
- <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
716
- <nbbrowse file="${dist.javadoc.dir}/index.html"/>
717
- </target>
718
- <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
719
- <!--
720
- =========================
721
- JUNIT COMPILATION SECTION
722
- =========================
723
- -->
724
- <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
725
- <mkdir dir="${build.test.classes.dir}"/>
726
- </target>
727
- <target name="-pre-compile-test">
728
- <!-- Empty placeholder for easier customization. -->
729
- <!-- You can override this target in the ../build.xml file. -->
730
- </target>
731
- <target if="do.depend.true" name="-compile-test-depend">
732
- <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
733
- </target>
734
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
735
- <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
736
- <copy todir="${build.test.classes.dir}">
737
- <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
738
- </copy>
739
- </target>
740
- <target name="-post-compile-test">
741
- <!-- Empty placeholder for easier customization. -->
742
- <!-- You can override this target in the ../build.xml file. -->
743
- </target>
744
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
745
- <target name="-pre-compile-test-single">
746
- <!-- Empty placeholder for easier customization. -->
747
- <!-- You can override this target in the ../build.xml file. -->
748
- </target>
749
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
750
- <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
751
- <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
752
- <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
753
- <copy todir="${build.test.classes.dir}">
754
- <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
755
- </copy>
756
- </target>
757
- <target name="-post-compile-test-single">
758
- <!-- Empty placeholder for easier customization. -->
759
- <!-- You can override this target in the ../build.xml file. -->
760
- </target>
761
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
762
- <!--
763
- =======================
764
- JUNIT EXECUTION SECTION
765
- =======================
766
- -->
767
- <target depends="init" if="have.tests" name="-pre-test-run">
768
- <mkdir dir="${build.test.results.dir}"/>
769
- </target>
770
- <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
771
- <j2seproject3:junit testincludes="**/*Test.java"/>
772
- </target>
773
- <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
774
- <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
775
- </target>
776
- <target depends="init" if="have.tests" name="test-report"/>
777
- <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
778
- <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
779
- <target depends="init" if="have.tests" name="-pre-test-run-single">
780
- <mkdir dir="${build.test.results.dir}"/>
781
- </target>
782
- <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
783
- <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
784
- <j2seproject3:junit excludes="" includes="${test.includes}"/>
785
- </target>
786
- <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
787
- <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
788
- </target>
789
- <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
790
- <!--
791
- =======================
792
- JUNIT DEBUGGING SECTION
793
- =======================
794
- -->
795
- <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
796
- <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
797
- <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
798
- <delete file="${test.report.file}"/>
799
- <mkdir dir="${build.test.results.dir}"/>
800
- <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
801
- <customize>
802
- <syspropertyset>
803
- <propertyref prefix="test-sys-prop."/>
804
- <mapper from="test-sys-prop.*" to="*" type="glob"/>
805
- </syspropertyset>
806
- <arg value="${test.class}"/>
807
- <arg value="showoutput=true"/>
808
- <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
809
- <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
810
- </customize>
811
- </j2seproject3:debug>
812
- </target>
813
- <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
814
- <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
815
- </target>
816
- <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
817
- <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
818
- <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
819
- </target>
820
- <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
821
- <!--
822
- =========================
823
- APPLET EXECUTION SECTION
824
- =========================
825
- -->
826
- <target depends="init,compile-single" name="run-applet">
827
- <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
828
- <j2seproject1:java classname="sun.applet.AppletViewer">
829
- <customize>
830
- <arg value="${applet.url}"/>
831
- </customize>
832
- </j2seproject1:java>
833
- </target>
834
- <!--
835
- =========================
836
- APPLET DEBUGGING SECTION
837
- =========================
838
- -->
839
- <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
840
- <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
841
- <j2seproject3:debug classname="sun.applet.AppletViewer">
842
- <customize>
843
- <arg value="${applet.url}"/>
844
- </customize>
845
- </j2seproject3:debug>
846
- </target>
847
- <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
848
- <!--
849
- ===============
850
- CLEANUP SECTION
851
- ===============
852
- -->
853
- <target name="-deps-clean-init" unless="built-clean.properties">
854
- <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
855
- <delete file="${built-clean.properties}" quiet="true"/>
856
- </target>
857
- <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
858
- <echo level="warn" message="Cycle detected: SCCompiler was already built"/>
859
- </target>
860
- <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
861
- <mkdir dir="${build.dir}"/>
862
- <touch file="${built-clean.properties}" verbose="false"/>
863
- <property file="${built-clean.properties}" prefix="already.built.clean."/>
864
- <antcall target="-warn-already-built-clean"/>
865
- <propertyfile file="${built-clean.properties}">
866
- <entry key="${basedir}" value=""/>
867
- </propertyfile>
868
- </target>
869
- <target depends="init" name="-do-clean">
870
- <delete dir="${build.dir}"/>
871
- <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
872
- </target>
873
- <target name="-post-clean">
874
- <!-- Empty placeholder for easier customization. -->
875
- <!-- You can override this target in the ../build.xml file. -->
876
- </target>
877
- <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
878
- <target name="-check-call-dep">
879
- <property file="${call.built.properties}" prefix="already.built."/>
880
- <condition property="should.call.dep">
881
- <not>
882
- <isset property="already.built.${call.subproject}"/>
883
- </not>
884
- </condition>
885
- </target>
886
- <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
887
- <ant antfile="${call.script}" inheritall="false" target="${call.target}">
888
- <propertyset>
889
- <propertyref prefix="transfer."/>
890
- <mapper from="transfer.*" to="*" type="glob"/>
891
- </propertyset>
892
- </ant>
893
- </target>
894
- </project>