abstractor 1.0.8

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.
Files changed (346) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +14 -0
  4. data/Rakefile +33 -0
  5. data/app/assets/images/abstractor/add.png +0 -0
  6. data/app/assets/images/abstractor/ajax-loader.gif +0 -0
  7. data/app/assets/images/abstractor/bar.gif +0 -0
  8. data/app/assets/images/abstractor/bti_logo.jpg +0 -0
  9. data/app/assets/images/abstractor/bullet_arrow_down.png +0 -0
  10. data/app/assets/images/abstractor/bullet_arrow_up.png +0 -0
  11. data/app/assets/images/abstractor/cog.png +0 -0
  12. data/app/assets/images/abstractor/delete.png +0 -0
  13. data/app/assets/images/abstractor/edit.png +0 -0
  14. data/app/assets/images/abstractor/excel.png +0 -0
  15. data/app/assets/images/abstractor/favicon.ico +0 -0
  16. data/app/assets/images/abstractor/greencheck.gif +0 -0
  17. data/app/assets/images/abstractor/loading.gif +0 -0
  18. data/app/assets/images/abstractor/nu_logo.jpg +0 -0
  19. data/app/assets/images/abstractor/nubic_logo.png +0 -0
  20. data/app/assets/images/abstractor/page.png +0 -0
  21. data/app/assets/images/abstractor/rails.png +0 -0
  22. data/app/assets/images/abstractor/robert_h_lurie.jpg +0 -0
  23. data/app/assets/images/abstractor/show.png +0 -0
  24. data/app/assets/images/abstractor/switch_minus.gif +0 -0
  25. data/app/assets/images/abstractor/switch_plus.gif +0 -0
  26. data/app/assets/javascripts/abstractor/abstractor.js +89 -0
  27. data/app/assets/javascripts/abstractor/application.js +21 -0
  28. data/app/assets/javascripts/abstractor/combobox.js +301 -0
  29. data/app/assets/javascripts/abstractor/jquery/jquery.form.js +1074 -0
  30. data/app/assets/javascripts/abstractor/nested_attributes.js +69 -0
  31. data/app/assets/stylesheets/abstractor/abstractor_abstractions.css +312 -0
  32. data/app/assets/stylesheets/abstractor/application.css +21 -0
  33. data/app/assets/stylesheets/abstractor/jquery.ui.override.css.scss +73 -0
  34. data/app/controllers/abstractor/abstractor_abstraction_groups_controller.rb +5 -0
  35. data/app/controllers/abstractor/abstractor_abstractions_controller.rb +5 -0
  36. data/app/controllers/abstractor/abstractor_suggestions_controller.rb +5 -0
  37. data/app/controllers/abstractor/application_controller.rb +2 -0
  38. data/app/helpers/abstractor/application_helper.rb +4 -0
  39. data/app/models/abstractor/abstractor_abstraction.rb +6 -0
  40. data/app/models/abstractor/abstractor_abstraction_group.rb +6 -0
  41. data/app/models/abstractor/abstractor_abstraction_group_member.rb +6 -0
  42. data/app/models/abstractor/abstractor_abstraction_schema.rb +6 -0
  43. data/app/models/abstractor/abstractor_abstraction_schema_object_value.rb +6 -0
  44. data/app/models/abstractor/abstractor_abstraction_schema_predicate_variant.rb +6 -0
  45. data/app/models/abstractor/abstractor_abstraction_schema_relation.rb +6 -0
  46. data/app/models/abstractor/abstractor_abstraction_source.rb +6 -0
  47. data/app/models/abstractor/abstractor_object_type.rb +6 -0
  48. data/app/models/abstractor/abstractor_object_value.rb +6 -0
  49. data/app/models/abstractor/abstractor_object_value_variant.rb +6 -0
  50. data/app/models/abstractor/abstractor_relation_type.rb +6 -0
  51. data/app/models/abstractor/abstractor_rule_type.rb +6 -0
  52. data/app/models/abstractor/abstractor_subject.rb +6 -0
  53. data/app/models/abstractor/abstractor_subject_group.rb +6 -0
  54. data/app/models/abstractor/abstractor_subject_group_member.rb +6 -0
  55. data/app/models/abstractor/abstractor_subject_relation.rb +6 -0
  56. data/app/models/abstractor/abstractor_suggestion.rb +6 -0
  57. data/app/models/abstractor/abstractor_suggestion_object_value.rb +6 -0
  58. data/app/models/abstractor/abstractor_suggestion_source.rb +6 -0
  59. data/app/models/abstractor/abstractor_suggestion_status.rb +6 -0
  60. data/app/views/abstractor/abstractor_abstraction_groups/_form.html.haml +10 -0
  61. data/app/views/abstractor/abstractor_abstraction_groups/edit.html.haml +1 -0
  62. data/app/views/abstractor/abstractor_abstractions/_fields.html.haml +63 -0
  63. data/app/views/abstractor/abstractor_abstractions/_list.html.haml +45 -0
  64. data/app/views/abstractor/abstractor_abstractions/edit.html.haml +53 -0
  65. data/app/views/abstractor/abstractor_abstractions/show.html.haml +1 -0
  66. data/app/views/abstractor/shared/_error_messages.html.haml +5 -0
  67. data/config/cucumber.yml +8 -0
  68. data/config/routes.rb +7 -0
  69. data/db/migrate/20131227205140_create_abstractor_object_types.rb +10 -0
  70. data/db/migrate/20131227205219_create_abstractor_object_values.rb +10 -0
  71. data/db/migrate/20131227205256_create_abstractor_object_value_variants.rb +11 -0
  72. data/db/migrate/20131227205320_create_abstractor_relation_types.rb +10 -0
  73. data/db/migrate/20131227205354_create_abstractor_rule_types.rb +11 -0
  74. data/db/migrate/20131227205432_create_abstractor_abstraction_schemas.rb +13 -0
  75. data/db/migrate/20131227205456_create_abstractor_abstraction_schema_object_values.rb +10 -0
  76. data/db/migrate/20131227205529_create_abstractor_abstraction_schema_predicate_variants.rb +11 -0
  77. data/db/migrate/20131227205610_create_abstractor_abstraction_schema_relations.rb +11 -0
  78. data/db/migrate/20131227205652_create_abstractor_subjects.rb +12 -0
  79. data/db/migrate/20131227205732_create_abstractor_subject_relations.rb +11 -0
  80. data/db/migrate/20131227205831_create_abstractor_abstraction_sources.rb +11 -0
  81. data/db/migrate/20131227210211_create_abstractor_subject_groups.rb +10 -0
  82. data/db/migrate/20131227210244_create_abstractor_subject_group_members.rb +11 -0
  83. data/db/migrate/20131227210350_create_abstractor_abstraction_groups.rb +12 -0
  84. data/db/migrate/20131227210353_create_abstractor_abstraction_group_members.rb +11 -0
  85. data/db/migrate/20131227211050_create_abstractor_suggestion_statuses.rb +10 -0
  86. data/db/migrate/20131227211303_create_abstractor_abstractions.rb +15 -0
  87. data/db/migrate/20131227213427_create_abstractor_suggestions.rb +14 -0
  88. data/db/migrate/20131228041944_create_abstractor_suggestion_object_values.rb +11 -0
  89. data/db/migrate/20131228041945_create_abstractor_suggestion_sources.rb +16 -0
  90. data/db/seeds.rb +0 -0
  91. data/lib/abstractor.rb +8 -0
  92. data/lib/abstractor/abstractable.rb +190 -0
  93. data/lib/abstractor/core_ext/string.rb +99 -0
  94. data/lib/abstractor/engine.rb +14 -0
  95. data/lib/abstractor/methods/controllers/abstractor_abstraction_groups_controller.rb +37 -0
  96. data/lib/abstractor/methods/controllers/abstractor_abstractions_controller.rb +42 -0
  97. data/lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb +28 -0
  98. data/lib/abstractor/methods/models/abstractor_abstraction.rb +65 -0
  99. data/lib/abstractor/methods/models/abstractor_abstraction_group.rb +37 -0
  100. data/lib/abstractor/methods/models/abstractor_abstraction_group_member.rb +17 -0
  101. data/lib/abstractor/methods/models/abstractor_abstraction_schema.rb +27 -0
  102. data/lib/abstractor/methods/models/abstractor_abstraction_schema_object_value.rb +17 -0
  103. data/lib/abstractor/methods/models/abstractor_abstraction_schema_predicate_variant.rb +16 -0
  104. data/lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb +18 -0
  105. data/lib/abstractor/methods/models/abstractor_abstraction_source.rb +29 -0
  106. data/lib/abstractor/methods/models/abstractor_object_type.rb +16 -0
  107. data/lib/abstractor/methods/models/abstractor_object_value.rb +24 -0
  108. data/lib/abstractor/methods/models/abstractor_object_value_variant.rb +16 -0
  109. data/lib/abstractor/methods/models/abstractor_relation_type.rb +16 -0
  110. data/lib/abstractor/methods/models/abstractor_rule_type.rb +17 -0
  111. data/lib/abstractor/methods/models/abstractor_subject.rb +258 -0
  112. data/lib/abstractor/methods/models/abstractor_subject_group.rb +19 -0
  113. data/lib/abstractor/methods/models/abstractor_subject_group_member.rb +17 -0
  114. data/lib/abstractor/methods/models/abstractor_subject_relation.rb +18 -0
  115. data/lib/abstractor/methods/models/abstractor_suggestion.rb +88 -0
  116. data/lib/abstractor/methods/models/abstractor_suggestion_object_value.rb +17 -0
  117. data/lib/abstractor/methods/models/abstractor_suggestion_source.rb +17 -0
  118. data/lib/abstractor/methods/models/abstractor_suggestion_status.rb +29 -0
  119. data/lib/abstractor/methods/models/soft_delete.rb +35 -0
  120. data/lib/abstractor/negation_detection.rb +43 -0
  121. data/lib/abstractor/parser.rb +76 -0
  122. data/lib/abstractor/setup.rb +24 -0
  123. data/lib/abstractor/user_interface.rb +40 -0
  124. data/lib/abstractor/utility.rb +8 -0
  125. data/lib/abstractor/version.rb +3 -0
  126. data/lib/generators/abstractor/install/install_generator.rb +118 -0
  127. data/lib/generators/abstractor/install/templates/controllers/abstractor_abstraction_groups_controller.rb +16 -0
  128. data/lib/generators/abstractor/install/templates/controllers/abstractor_abstractions_controller.rb +24 -0
  129. data/lib/generators/abstractor/install/templates/controllers/abstractor_suggestions_controller.rb +12 -0
  130. data/lib/generators/abstractor/install/templates/dictionaries.yml +235 -0
  131. data/lib/generators/abstractor/install/templates/helpers/abstractions_helper.rb +9 -0
  132. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction.rb +9 -0
  133. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_group.rb +9 -0
  134. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_group_member.rb +9 -0
  135. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema.rb +9 -0
  136. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema_object_value.rb +9 -0
  137. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema_predicate_variant.rb +9 -0
  138. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema_relation.rb +9 -0
  139. data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_source.rb +9 -0
  140. data/lib/generators/abstractor/install/templates/models/abstractor_object_type.rb +9 -0
  141. data/lib/generators/abstractor/install/templates/models/abstractor_object_value.rb +9 -0
  142. data/lib/generators/abstractor/install/templates/models/abstractor_object_value_variant.rb +9 -0
  143. data/lib/generators/abstractor/install/templates/models/abstractor_relation_type.rb +9 -0
  144. data/lib/generators/abstractor/install/templates/models/abstractor_rule_type.rb +9 -0
  145. data/lib/generators/abstractor/install/templates/models/abstractor_subject.rb +9 -0
  146. data/lib/generators/abstractor/install/templates/models/abstractor_subject_group.rb +9 -0
  147. data/lib/generators/abstractor/install/templates/models/abstractor_subject_group_member.rb +9 -0
  148. data/lib/generators/abstractor/install/templates/models/abstractor_subject_relation.rb +9 -0
  149. data/lib/generators/abstractor/install/templates/models/abstractor_suggestion.rb +9 -0
  150. data/lib/generators/abstractor/install/templates/models/abstractor_suggestion_object_value.rb +9 -0
  151. data/lib/generators/abstractor/install/templates/models/abstractor_suggestion_source.rb +9 -0
  152. data/lib/generators/abstractor/install/templates/models/abstractor_suggestion_status.rb +9 -0
  153. data/lib/lingscope/build.xml +74 -0
  154. data/lib/lingscope/build/built-jar.properties +4 -0
  155. data/lib/lingscope/build/classes/lingscope/algorithms/AbnerTokenizer.class +0 -0
  156. data/lib/lingscope/build/classes/lingscope/algorithms/AnnotationComparer.class +0 -0
  157. data/lib/lingscope/build/classes/lingscope/algorithms/Annotator.class +0 -0
  158. data/lib/lingscope/build/classes/lingscope/algorithms/BaselineAnnotator.class +0 -0
  159. data/lib/lingscope/build/classes/lingscope/algorithms/BaselineCueAnnotator.class +0 -0
  160. data/lib/lingscope/build/classes/lingscope/algorithms/BaselineScopeAnnotator.class +0 -0
  161. data/lib/lingscope/build/classes/lingscope/algorithms/CrfAnnotator.class +0 -0
  162. data/lib/lingscope/build/classes/lingscope/algorithms/NegexAnnotator.class +0 -0
  163. data/lib/lingscope/build/classes/lingscope/algorithms/NegexCueAnnotator.class +0 -0
  164. data/lib/lingscope/build/classes/lingscope/algorithms/NegexScopeAnnotator.class +0 -0
  165. data/lib/lingscope/build/classes/lingscope/algorithms/PosTagger.class +0 -0
  166. data/lib/lingscope/build/classes/lingscope/algorithms/negex/GenNegEx.class +0 -0
  167. data/lib/lingscope/build/classes/lingscope/algorithms/negex/Sorter.class +0 -0
  168. data/lib/lingscope/build/classes/lingscope/drivers/AnnotatedFilesMerger.class +0 -0
  169. data/lib/lingscope/build/classes/lingscope/drivers/AnnotationComparerDriver.class +0 -0
  170. data/lib/lingscope/build/classes/lingscope/drivers/BaselineDriver.class +0 -0
  171. data/lib/lingscope/build/classes/lingscope/drivers/CrfDriver.class +0 -0
  172. data/lib/lingscope/build/classes/lingscope/drivers/CueAndPosFilesMerger.class +0 -0
  173. data/lib/lingscope/build/classes/lingscope/drivers/ModelTrainer.class +0 -0
  174. data/lib/lingscope/build/classes/lingscope/drivers/NegexDriver.class +0 -0
  175. data/lib/lingscope/build/classes/lingscope/drivers/PosTaggerDriver.class +0 -0
  176. data/lib/lingscope/build/classes/lingscope/drivers/SentencePosTagger.class +0 -0
  177. data/lib/lingscope/build/classes/lingscope/drivers/SentenceTagger.class +0 -0
  178. data/lib/lingscope/build/classes/lingscope/io/AnnotatedSentencesIO.class +0 -0
  179. data/lib/lingscope/build/classes/lingscope/structures/AnnotatedSentence.class +0 -0
  180. data/lib/lingscope/dist/README.TXT +32 -0
  181. data/lib/lingscope/dist/javadoc/allclasses-frame.html +80 -0
  182. data/lib/lingscope/dist/javadoc/allclasses-noframe.html +80 -0
  183. data/lib/lingscope/dist/javadoc/constant-values.html +199 -0
  184. data/lib/lingscope/dist/javadoc/deprecated-list.html +147 -0
  185. data/lib/lingscope/dist/javadoc/help-doc.html +224 -0
  186. data/lib/lingscope/dist/javadoc/index-files/index-1.html +188 -0
  187. data/lib/lingscope/dist/javadoc/index-files/index-10.html +149 -0
  188. data/lib/lingscope/dist/javadoc/index-files/index-11.html +158 -0
  189. data/lib/lingscope/dist/javadoc/index-files/index-12.html +157 -0
  190. data/lib/lingscope/dist/javadoc/index-files/index-13.html +177 -0
  191. data/lib/lingscope/dist/javadoc/index-files/index-14.html +155 -0
  192. data/lib/lingscope/dist/javadoc/index-files/index-15.html +152 -0
  193. data/lib/lingscope/dist/javadoc/index-files/index-16.html +146 -0
  194. data/lib/lingscope/dist/javadoc/index-files/index-2.html +158 -0
  195. data/lib/lingscope/dist/javadoc/index-files/index-3.html +165 -0
  196. data/lib/lingscope/dist/javadoc/index-files/index-4.html +146 -0
  197. data/lib/lingscope/dist/javadoc/index-files/index-5.html +219 -0
  198. data/lib/lingscope/dist/javadoc/index-files/index-6.html +149 -0
  199. data/lib/lingscope/dist/javadoc/index-files/index-7.html +155 -0
  200. data/lib/lingscope/dist/javadoc/index-files/index-8.html +185 -0
  201. data/lib/lingscope/dist/javadoc/index-files/index-9.html +164 -0
  202. data/lib/lingscope/dist/javadoc/index.html +74 -0
  203. data/lib/lingscope/dist/javadoc/lingscope/algorithms/AbnerTokenizer.html +280 -0
  204. data/lib/lingscope/dist/javadoc/lingscope/algorithms/AnnotationComparer.html +526 -0
  205. data/lib/lingscope/dist/javadoc/lingscope/algorithms/Annotator.html +401 -0
  206. data/lib/lingscope/dist/javadoc/lingscope/algorithms/BaselineAnnotator.html +375 -0
  207. data/lib/lingscope/dist/javadoc/lingscope/algorithms/BaselineCueAnnotator.html +309 -0
  208. data/lib/lingscope/dist/javadoc/lingscope/algorithms/BaselineScopeAnnotator.html +340 -0
  209. data/lib/lingscope/dist/javadoc/lingscope/algorithms/CrfAnnotator.html +340 -0
  210. data/lib/lingscope/dist/javadoc/lingscope/algorithms/NegexAnnotator.html +364 -0
  211. data/lib/lingscope/dist/javadoc/lingscope/algorithms/NegexCueAnnotator.html +309 -0
  212. data/lib/lingscope/dist/javadoc/lingscope/algorithms/NegexScopeAnnotator.html +309 -0
  213. data/lib/lingscope/dist/javadoc/lingscope/algorithms/PosTagger.html +268 -0
  214. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/AbnerTokenizer.html +145 -0
  215. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/AnnotationComparer.html +145 -0
  216. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/Annotator.html +299 -0
  217. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/BaselineAnnotator.html +189 -0
  218. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/BaselineCueAnnotator.html +145 -0
  219. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/BaselineScopeAnnotator.html +145 -0
  220. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/CrfAnnotator.html +145 -0
  221. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/NegexAnnotator.html +189 -0
  222. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/NegexCueAnnotator.html +145 -0
  223. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/NegexScopeAnnotator.html +145 -0
  224. data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/PosTagger.html +145 -0
  225. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/GenNegEx.html +369 -0
  226. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/Sorter.html +253 -0
  227. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/class-use/GenNegEx.html +181 -0
  228. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/class-use/Sorter.html +145 -0
  229. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-frame.html +35 -0
  230. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-summary.html +165 -0
  231. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-tree.html +154 -0
  232. data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-use.html +174 -0
  233. data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-frame.html +53 -0
  234. data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-summary.html +198 -0
  235. data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-tree.html +160 -0
  236. data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-use.html +202 -0
  237. data/lib/lingscope/dist/javadoc/lingscope/drivers/AnnotatedFilesMerger.html +284 -0
  238. data/lib/lingscope/dist/javadoc/lingscope/drivers/AnnotationComparerDriver.html +258 -0
  239. data/lib/lingscope/dist/javadoc/lingscope/drivers/BaselineDriver.html +260 -0
  240. data/lib/lingscope/dist/javadoc/lingscope/drivers/CrfDriver.html +262 -0
  241. data/lib/lingscope/dist/javadoc/lingscope/drivers/CueAndPosFilesMerger.html +310 -0
  242. data/lib/lingscope/dist/javadoc/lingscope/drivers/ModelTrainer.html +281 -0
  243. data/lib/lingscope/dist/javadoc/lingscope/drivers/NegexDriver.html +262 -0
  244. data/lib/lingscope/dist/javadoc/lingscope/drivers/PosTaggerDriver.html +289 -0
  245. data/lib/lingscope/dist/javadoc/lingscope/drivers/SentencePosTagger.html +313 -0
  246. data/lib/lingscope/dist/javadoc/lingscope/drivers/SentenceTagger.html +512 -0
  247. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/AnnotatedFilesMerger.html +145 -0
  248. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/AnnotationComparerDriver.html +145 -0
  249. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/BaselineDriver.html +145 -0
  250. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/CrfDriver.html +145 -0
  251. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/CueAndPosFilesMerger.html +145 -0
  252. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/ModelTrainer.html +145 -0
  253. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/NegexDriver.html +145 -0
  254. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/PosTaggerDriver.html +145 -0
  255. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/SentencePosTagger.html +145 -0
  256. data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/SentenceTagger.html +145 -0
  257. data/lib/lingscope/dist/javadoc/lingscope/drivers/package-frame.html +51 -0
  258. data/lib/lingscope/dist/javadoc/lingscope/drivers/package-summary.html +195 -0
  259. data/lib/lingscope/dist/javadoc/lingscope/drivers/package-tree.html +154 -0
  260. data/lib/lingscope/dist/javadoc/lingscope/drivers/package-use.html +145 -0
  261. data/lib/lingscope/dist/javadoc/lingscope/io/AnnotatedSentencesIO.html +285 -0
  262. data/lib/lingscope/dist/javadoc/lingscope/io/class-use/AnnotatedSentencesIO.html +145 -0
  263. data/lib/lingscope/dist/javadoc/lingscope/io/package-frame.html +33 -0
  264. data/lib/lingscope/dist/javadoc/lingscope/io/package-summary.html +158 -0
  265. data/lib/lingscope/dist/javadoc/lingscope/io/package-tree.html +154 -0
  266. data/lib/lingscope/dist/javadoc/lingscope/io/package-use.html +145 -0
  267. data/lib/lingscope/dist/javadoc/lingscope/structures/AnnotatedSentence.html +425 -0
  268. data/lib/lingscope/dist/javadoc/lingscope/structures/class-use/AnnotatedSentence.html +423 -0
  269. data/lib/lingscope/dist/javadoc/lingscope/structures/package-frame.html +33 -0
  270. data/lib/lingscope/dist/javadoc/lingscope/structures/package-summary.html +158 -0
  271. data/lib/lingscope/dist/javadoc/lingscope/structures/package-tree.html +154 -0
  272. data/lib/lingscope/dist/javadoc/lingscope/structures/package-use.html +209 -0
  273. data/lib/lingscope/dist/javadoc/overview-frame.html +51 -0
  274. data/lib/lingscope/dist/javadoc/overview-summary.html +168 -0
  275. data/lib/lingscope/dist/javadoc/overview-tree.html +159 -0
  276. data/lib/lingscope/dist/javadoc/package-list +5 -0
  277. data/lib/lingscope/dist/javadoc/resources/inherit.gif +0 -0
  278. data/lib/lingscope/dist/javadoc/stylesheet.css +29 -0
  279. data/lib/lingscope/dist/lib/abner.jar +0 -0
  280. data/lib/lingscope/dist/lib/commons-lang-2.4.jar +0 -0
  281. data/lib/lingscope/dist/lib/java_utils.jar +0 -0
  282. data/lib/lingscope/dist/lib/sptoolkit.jar +0 -0
  283. data/lib/lingscope/dist/lib/stanford-postagger.jar +0 -0
  284. data/lib/lingscope/dist/lingscope.jar +0 -0
  285. data/lib/lingscope/lingscope.zip +0 -0
  286. data/lib/lingscope/manifest.mf +3 -0
  287. data/lib/lingscope/nbproject/build-impl.xml +1338 -0
  288. data/lib/lingscope/nbproject/genfiles.properties +8 -0
  289. data/lib/lingscope/nbproject/private/config.properties +0 -0
  290. data/lib/lingscope/nbproject/private/private.properties +10 -0
  291. data/lib/lingscope/nbproject/private/private.xml +5 -0
  292. data/lib/lingscope/nbproject/project.properties +85 -0
  293. data/lib/lingscope/nbproject/project.xml +15 -0
  294. data/lib/lingscope/negation_models.zip +0 -0
  295. data/lib/lingscope/negation_models/baseline_cue_all_both.model +49 -0
  296. data/lib/lingscope/negation_models/baseline_cue_all_clinical.model +19 -0
  297. data/lib/lingscope/negation_models/crf_cue_all_both.model +0 -0
  298. data/lib/lingscope/negation_models/crf_cue_all_clinical.model +0 -0
  299. data/lib/lingscope/negation_models/crf_scope_cue_crf_all_both.model +0 -0
  300. data/lib/lingscope/negation_models/crf_scope_cue_crf_all_clinical.model +0 -0
  301. data/lib/lingscope/negation_models/crf_scope_cue_regex_all_both.model +0 -0
  302. data/lib/lingscope/negation_models/crf_scope_cue_regex_all_clinical.model +0 -0
  303. data/lib/lingscope/negation_models/crf_scope_words_all_both.model +0 -0
  304. data/lib/lingscope/negation_models/crf_scope_words_all_clinical.model +0 -0
  305. data/lib/lingscope/negation_models/crf_scope_words_crf_all_both.model +0 -0
  306. data/lib/lingscope/negation_models/crf_scope_words_crf_all_clinical.model +0 -0
  307. data/lib/lingscope/negation_models/crf_scope_words_regex_all_both.model +0 -0
  308. data/lib/lingscope/negation_models/crf_scope_words_regex_all_clinical.model +0 -0
  309. data/lib/lingscope/src/lingscope/algorithms/AbnerTokenizer.java +58 -0
  310. data/lib/lingscope/src/lingscope/algorithms/AnnotationComparer.java +207 -0
  311. data/lib/lingscope/src/lingscope/algorithms/Annotator.java +51 -0
  312. data/lib/lingscope/src/lingscope/algorithms/BaselineAnnotator.java +80 -0
  313. data/lib/lingscope/src/lingscope/algorithms/BaselineCueAnnotator.java +84 -0
  314. data/lib/lingscope/src/lingscope/algorithms/BaselineScopeAnnotator.java +101 -0
  315. data/lib/lingscope/src/lingscope/algorithms/CrfAnnotator.java +45 -0
  316. data/lib/lingscope/src/lingscope/algorithms/NegexAnnotator.java +52 -0
  317. data/lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java +26 -0
  318. data/lib/lingscope/src/lingscope/algorithms/NegexScopeAnnotator.java +26 -0
  319. data/lib/lingscope/src/lingscope/algorithms/PosTagger.java +54 -0
  320. data/lib/lingscope/src/lingscope/algorithms/negex/GenNegEx.java +530 -0
  321. data/lib/lingscope/src/lingscope/algorithms/negex/Sorter.java +36 -0
  322. data/lib/lingscope/src/lingscope/drivers/AnnotatedFilesMerger.java +61 -0
  323. data/lib/lingscope/src/lingscope/drivers/AnnotationComparerDriver.java +22 -0
  324. data/lib/lingscope/src/lingscope/drivers/BaselineDriver.java +45 -0
  325. data/lib/lingscope/src/lingscope/drivers/CrfDriver.java +31 -0
  326. data/lib/lingscope/src/lingscope/drivers/CueAndPosFilesMerger.java +86 -0
  327. data/lib/lingscope/src/lingscope/drivers/ModelTrainer.java +39 -0
  328. data/lib/lingscope/src/lingscope/drivers/NegexDriver.java +32 -0
  329. data/lib/lingscope/src/lingscope/drivers/PosTaggerDriver.java +62 -0
  330. data/lib/lingscope/src/lingscope/drivers/SentencePosTagger.java +89 -0
  331. data/lib/lingscope/src/lingscope/drivers/SentenceTagger.java +158 -0
  332. data/lib/lingscope/src/lingscope/io/AnnotatedSentencesIO.java +53 -0
  333. data/lib/lingscope/src/lingscope/structures/AnnotatedSentence.java +105 -0
  334. data/lib/setup/data/ICD-O-3_CSV-metadata/Morphenglish.csv +1 -0
  335. data/lib/setup/data/ICD-O-3_CSV-metadata/Morphenglish.txt +2273 -0
  336. data/lib/setup/data/ICD-O-3_CSV-metadata/Topoenglish.csv +1 -0
  337. data/lib/setup/data/ICD-O-3_CSV-metadata/Topoenglish.txt +1342 -0
  338. data/lib/setup/data/ICD-O-3_CSV-metadata/icd-o3 readme.txt +21 -0
  339. data/lib/setup/data/custom_site_synonyms.csv +1 -0
  340. data/lib/setup/data/diagnosis_categorizations.csv +1 -0
  341. data/lib/setup/data/high_level_primary_cns_diagnosis_categorizations.yml +597 -0
  342. data/lib/setup/data/icdo3_sites_with_laterality.txt +11 -0
  343. data/lib/setup/data/site_site_categories.txt +28 -0
  344. data/lib/tasks/abstractor_tasks.rake +22 -0
  345. data/lib/tasks/cucumber.rake +65 -0
  346. metadata +754 -0
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <!--NewPage-->
3
+ <HTML>
4
+ <HEAD>
5
+ <!-- Generated by javadoc (build 1.6.0_65) on Tue Feb 18 19:45:41 CST 2014 -->
6
+ <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
+ <TITLE>
8
+ Overview List
9
+ </TITLE>
10
+
11
+ <META NAME="date" CONTENT="2014-02-18">
12
+
13
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
14
+
15
+
16
+ </HEAD>
17
+
18
+ <BODY BGCOLOR="white">
19
+
20
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY="">
21
+ <TR>
22
+ <TH ALIGN="left" NOWRAP><FONT size="+1" CLASS="FrameTitleFont">
23
+ <B></B></FONT></TH>
24
+ </TR>
25
+ </TABLE>
26
+
27
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY="">
28
+ <TR>
29
+ <TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="allclasses-frame.html" target="packageFrame">All Classes</A></FONT>
30
+ <P>
31
+ <FONT size="+1" CLASS="FrameHeadingFont">
32
+ Packages</FONT>
33
+ <BR>
34
+ <FONT CLASS="FrameItemFont"><A HREF="lingscope/algorithms/package-frame.html" target="packageFrame">lingscope.algorithms</A></FONT>
35
+ <BR>
36
+ <FONT CLASS="FrameItemFont"><A HREF="lingscope/algorithms/negex/package-frame.html" target="packageFrame">lingscope.algorithms.negex</A></FONT>
37
+ <BR>
38
+ <FONT CLASS="FrameItemFont"><A HREF="lingscope/drivers/package-frame.html" target="packageFrame">lingscope.drivers</A></FONT>
39
+ <BR>
40
+ <FONT CLASS="FrameItemFont"><A HREF="lingscope/io/package-frame.html" target="packageFrame">lingscope.io</A></FONT>
41
+ <BR>
42
+ <FONT CLASS="FrameItemFont"><A HREF="lingscope/structures/package-frame.html" target="packageFrame">lingscope.structures</A></FONT>
43
+ <BR>
44
+ </TD>
45
+ </TR>
46
+ </TABLE>
47
+
48
+ <P>
49
+ &nbsp;
50
+ </BODY>
51
+ </HTML>
@@ -0,0 +1,168 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <!--NewPage-->
3
+ <HTML>
4
+ <HEAD>
5
+ <!-- Generated by javadoc (build 1.6.0_65) on Tue Feb 18 19:45:41 CST 2014 -->
6
+ <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
+ <TITLE>
8
+ Overview
9
+ </TITLE>
10
+
11
+ <META NAME="date" CONTENT="2014-02-18">
12
+
13
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
14
+
15
+ <SCRIPT type="text/javascript">
16
+ function windowTitle()
17
+ {
18
+ if (location.href.indexOf('is-external=true') == -1) {
19
+ parent.document.title="Overview";
20
+ }
21
+ }
22
+ </SCRIPT>
23
+ <NOSCRIPT>
24
+ </NOSCRIPT>
25
+
26
+ </HEAD>
27
+
28
+ <BODY BGCOLOR="white" onload="windowTitle();">
29
+ <HR>
30
+
31
+
32
+ <!-- ========= START OF TOP NAVBAR ======= -->
33
+ <A NAME="navbar_top"><!-- --></A>
34
+ <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35
+ <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36
+ <TR>
37
+ <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38
+ <A NAME="navbar_top_firstrow"><!-- --></A>
39
+ <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40
+ <TR ALIGN="center" VALIGN="top">
41
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
42
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
43
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
44
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
45
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
49
+ </TR>
50
+ </TABLE>
51
+ </TD>
52
+ <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53
+ </EM>
54
+ </TD>
55
+ </TR>
56
+
57
+ <TR>
58
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59
+ &nbsp;PREV&nbsp;
60
+ &nbsp;NEXT</FONT></TD>
61
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62
+ <A HREF="index.html?overview-summary.html" target="_top"><B>FRAMES</B></A> &nbsp;
63
+ &nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
64
+ &nbsp;<SCRIPT type="text/javascript">
65
+ <!--
66
+ if(window==top) {
67
+ document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
68
+ }
69
+ //-->
70
+ </SCRIPT>
71
+ <NOSCRIPT>
72
+ <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
73
+ </NOSCRIPT>
74
+
75
+
76
+ </FONT></TD>
77
+ </TR>
78
+ </TABLE>
79
+ <A NAME="skip-navbar_top"></A>
80
+ <!-- ========= END OF TOP NAVBAR ========= -->
81
+
82
+ <HR>
83
+
84
+ <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
85
+ <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
86
+ <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
87
+ <B>Packages</B></FONT></TH>
88
+ </TR>
89
+ <TR BGCOLOR="white" CLASS="TableRowColor">
90
+ <TD WIDTH="20%"><B><A HREF="lingscope/algorithms/package-summary.html">lingscope.algorithms</A></B></TD>
91
+ <TD>&nbsp;</TD>
92
+ </TR>
93
+ <TR BGCOLOR="white" CLASS="TableRowColor">
94
+ <TD WIDTH="20%"><B><A HREF="lingscope/algorithms/negex/package-summary.html">lingscope.algorithms.negex</A></B></TD>
95
+ <TD>&nbsp;</TD>
96
+ </TR>
97
+ <TR BGCOLOR="white" CLASS="TableRowColor">
98
+ <TD WIDTH="20%"><B><A HREF="lingscope/drivers/package-summary.html">lingscope.drivers</A></B></TD>
99
+ <TD>&nbsp;</TD>
100
+ </TR>
101
+ <TR BGCOLOR="white" CLASS="TableRowColor">
102
+ <TD WIDTH="20%"><B><A HREF="lingscope/io/package-summary.html">lingscope.io</A></B></TD>
103
+ <TD>&nbsp;</TD>
104
+ </TR>
105
+ <TR BGCOLOR="white" CLASS="TableRowColor">
106
+ <TD WIDTH="20%"><B><A HREF="lingscope/structures/package-summary.html">lingscope.structures</A></B></TD>
107
+ <TD>&nbsp;</TD>
108
+ </TR>
109
+ </TABLE>
110
+
111
+ <P>
112
+ &nbsp;<HR>
113
+
114
+
115
+ <!-- ======= START OF BOTTOM NAVBAR ====== -->
116
+ <A NAME="navbar_bottom"><!-- --></A>
117
+ <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
118
+ <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
119
+ <TR>
120
+ <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
121
+ <A NAME="navbar_bottom_firstrow"><!-- --></A>
122
+ <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
123
+ <TR ALIGN="center" VALIGN="top">
124
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
125
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
126
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
127
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
128
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
129
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
130
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
131
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
132
+ </TR>
133
+ </TABLE>
134
+ </TD>
135
+ <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
136
+ </EM>
137
+ </TD>
138
+ </TR>
139
+
140
+ <TR>
141
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
142
+ &nbsp;PREV&nbsp;
143
+ &nbsp;NEXT</FONT></TD>
144
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
145
+ <A HREF="index.html?overview-summary.html" target="_top"><B>FRAMES</B></A> &nbsp;
146
+ &nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
147
+ &nbsp;<SCRIPT type="text/javascript">
148
+ <!--
149
+ if(window==top) {
150
+ document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
151
+ }
152
+ //-->
153
+ </SCRIPT>
154
+ <NOSCRIPT>
155
+ <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
156
+ </NOSCRIPT>
157
+
158
+
159
+ </FONT></TD>
160
+ </TR>
161
+ </TABLE>
162
+ <A NAME="skip-navbar_bottom"></A>
163
+ <!-- ======== END OF BOTTOM NAVBAR ======= -->
164
+
165
+ <HR>
166
+
167
+ </BODY>
168
+ </HTML>
@@ -0,0 +1,159 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <!--NewPage-->
3
+ <HTML>
4
+ <HEAD>
5
+ <!-- Generated by javadoc (build 1.6.0_65) on Tue Feb 18 19:45:41 CST 2014 -->
6
+ <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
+ <TITLE>
8
+ Class Hierarchy
9
+ </TITLE>
10
+
11
+ <META NAME="date" CONTENT="2014-02-18">
12
+
13
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
14
+
15
+ <SCRIPT type="text/javascript">
16
+ function windowTitle()
17
+ {
18
+ if (location.href.indexOf('is-external=true') == -1) {
19
+ parent.document.title="Class Hierarchy";
20
+ }
21
+ }
22
+ </SCRIPT>
23
+ <NOSCRIPT>
24
+ </NOSCRIPT>
25
+
26
+ </HEAD>
27
+
28
+ <BODY BGCOLOR="white" onload="windowTitle();">
29
+ <HR>
30
+
31
+
32
+ <!-- ========= START OF TOP NAVBAR ======= -->
33
+ <A NAME="navbar_top"><!-- --></A>
34
+ <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35
+ <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36
+ <TR>
37
+ <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38
+ <A NAME="navbar_top_firstrow"><!-- --></A>
39
+ <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40
+ <TR ALIGN="center" VALIGN="top">
41
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
43
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
44
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
45
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
46
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
49
+ </TR>
50
+ </TABLE>
51
+ </TD>
52
+ <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53
+ </EM>
54
+ </TD>
55
+ </TR>
56
+
57
+ <TR>
58
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59
+ &nbsp;PREV&nbsp;
60
+ &nbsp;NEXT</FONT></TD>
61
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62
+ <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A> &nbsp;
63
+ &nbsp;<A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
64
+ &nbsp;<SCRIPT type="text/javascript">
65
+ <!--
66
+ if(window==top) {
67
+ document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
68
+ }
69
+ //-->
70
+ </SCRIPT>
71
+ <NOSCRIPT>
72
+ <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
73
+ </NOSCRIPT>
74
+
75
+
76
+ </FONT></TD>
77
+ </TR>
78
+ </TABLE>
79
+ <A NAME="skip-navbar_top"></A>
80
+ <!-- ========= END OF TOP NAVBAR ========= -->
81
+
82
+ <HR>
83
+ <CENTER>
84
+ <H2>
85
+ Hierarchy For All Packages</H2>
86
+ </CENTER>
87
+ <DL>
88
+ <DT><B>Package Hierarchies:</B><DD><A HREF="lingscope/algorithms/package-tree.html">lingscope.algorithms</A>, <A HREF="lingscope/algorithms/negex/package-tree.html">lingscope.algorithms.negex</A>, <A HREF="lingscope/drivers/package-tree.html">lingscope.drivers</A>, <A HREF="lingscope/io/package-tree.html">lingscope.io</A>, <A HREF="lingscope/structures/package-tree.html">lingscope.structures</A></DL>
89
+ <HR>
90
+ <H2>
91
+ Class Hierarchy
92
+ </H2>
93
+ <UL>
94
+ <LI TYPE="circle">java.lang.Object<UL>
95
+ <LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/AbnerTokenizer.html" title="class in lingscope.algorithms"><B>AbnerTokenizer</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/AnnotatedFilesMerger.html" title="class in lingscope.drivers"><B>AnnotatedFilesMerger</B></A><LI TYPE="circle">lingscope.structures.<A HREF="lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures"><B>AnnotatedSentence</B></A><LI TYPE="circle">lingscope.io.<A HREF="lingscope/io/AnnotatedSentencesIO.html" title="class in lingscope.io"><B>AnnotatedSentencesIO</B></A><LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/AnnotationComparer.html" title="class in lingscope.algorithms"><B>AnnotationComparer</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/AnnotationComparerDriver.html" title="class in lingscope.drivers"><B>AnnotationComparerDriver</B></A><LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms"><B>Annotator</B></A><UL>
96
+ <LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/BaselineAnnotator.html" title="class in lingscope.algorithms"><B>BaselineAnnotator</B></A><UL>
97
+ <LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/BaselineCueAnnotator.html" title="class in lingscope.algorithms"><B>BaselineCueAnnotator</B></A><LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/BaselineScopeAnnotator.html" title="class in lingscope.algorithms"><B>BaselineScopeAnnotator</B></A></UL>
98
+ <LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/CrfAnnotator.html" title="class in lingscope.algorithms"><B>CrfAnnotator</B></A><LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/NegexAnnotator.html" title="class in lingscope.algorithms"><B>NegexAnnotator</B></A><UL>
99
+ <LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/NegexCueAnnotator.html" title="class in lingscope.algorithms"><B>NegexCueAnnotator</B></A><LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/NegexScopeAnnotator.html" title="class in lingscope.algorithms"><B>NegexScopeAnnotator</B></A></UL>
100
+ </UL>
101
+ <LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/BaselineDriver.html" title="class in lingscope.drivers"><B>BaselineDriver</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/CrfDriver.html" title="class in lingscope.drivers"><B>CrfDriver</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/CueAndPosFilesMerger.html" title="class in lingscope.drivers"><B>CueAndPosFilesMerger</B></A><LI TYPE="circle">lingscope.algorithms.negex.<A HREF="lingscope/algorithms/negex/GenNegEx.html" title="class in lingscope.algorithms.negex"><B>GenNegEx</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/ModelTrainer.html" title="class in lingscope.drivers"><B>ModelTrainer</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/NegexDriver.html" title="class in lingscope.drivers"><B>NegexDriver</B></A><LI TYPE="circle">lingscope.algorithms.<A HREF="lingscope/algorithms/PosTagger.html" title="class in lingscope.algorithms"><B>PosTagger</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/PosTaggerDriver.html" title="class in lingscope.drivers"><B>PosTaggerDriver</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/SentencePosTagger.html" title="class in lingscope.drivers"><B>SentencePosTagger</B></A><LI TYPE="circle">lingscope.drivers.<A HREF="lingscope/drivers/SentenceTagger.html" title="class in lingscope.drivers"><B>SentenceTagger</B></A><LI TYPE="circle">lingscope.algorithms.negex.<A HREF="lingscope/algorithms/negex/Sorter.html" title="class in lingscope.algorithms.negex"><B>Sorter</B></A></UL>
102
+ </UL>
103
+ <HR>
104
+
105
+
106
+ <!-- ======= START OF BOTTOM NAVBAR ====== -->
107
+ <A NAME="navbar_bottom"><!-- --></A>
108
+ <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
109
+ <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
110
+ <TR>
111
+ <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
112
+ <A NAME="navbar_bottom_firstrow"><!-- --></A>
113
+ <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
114
+ <TR ALIGN="center" VALIGN="top">
115
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
116
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
117
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
118
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
119
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
120
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
121
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
122
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
123
+ </TR>
124
+ </TABLE>
125
+ </TD>
126
+ <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
127
+ </EM>
128
+ </TD>
129
+ </TR>
130
+
131
+ <TR>
132
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
133
+ &nbsp;PREV&nbsp;
134
+ &nbsp;NEXT</FONT></TD>
135
+ <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
136
+ <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A> &nbsp;
137
+ &nbsp;<A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
138
+ &nbsp;<SCRIPT type="text/javascript">
139
+ <!--
140
+ if(window==top) {
141
+ document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
142
+ }
143
+ //-->
144
+ </SCRIPT>
145
+ <NOSCRIPT>
146
+ <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
147
+ </NOSCRIPT>
148
+
149
+
150
+ </FONT></TD>
151
+ </TR>
152
+ </TABLE>
153
+ <A NAME="skip-navbar_bottom"></A>
154
+ <!-- ======== END OF BOTTOM NAVBAR ======= -->
155
+
156
+ <HR>
157
+
158
+ </BODY>
159
+ </HTML>
@@ -0,0 +1,5 @@
1
+ lingscope.algorithms
2
+ lingscope.algorithms.negex
3
+ lingscope.drivers
4
+ lingscope.io
5
+ lingscope.structures
@@ -0,0 +1,29 @@
1
+ /* Javadoc style sheet */
2
+
3
+ /* Define colors, fonts and other style attributes here to override the defaults */
4
+
5
+ /* Page background color */
6
+ body { background-color: #FFFFFF; color:#000000 }
7
+
8
+ /* Headings */
9
+ h1 { font-size: 145% }
10
+
11
+ /* Table colors */
12
+ .TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */
13
+ .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */
14
+ .TableRowColor { background: #FFFFFF; color:#000000 } /* White */
15
+
16
+ /* Font used in left-hand frame lists */
17
+ .FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
18
+ .FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
19
+ .FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
20
+
21
+ /* Navigation bar fonts and colors */
22
+ .NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */
23
+ .NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */
24
+ .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;}
25
+ .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;}
26
+
27
+ .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
28
+ .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
29
+
Binary file
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ Manifest-Version: 1.0
2
+ X-COMMENT: Main-Class will be added automatically by build
3
+
@@ -0,0 +1,1338 @@
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
+ - test compilation
16
+ - test execution
17
+ - test 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="lingscope-impl">
23
+ <fail message="Please build using Ant 1.8.0 or higher.">
24
+ <condition>
25
+ <not>
26
+ <antversion atleast="1.8.0"/>
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
+ <condition property="splashscreen.available">
59
+ <and>
60
+ <not>
61
+ <equals arg1="${application.splash}" arg2="" trim="true"/>
62
+ </not>
63
+ <available file="${application.splash}"/>
64
+ </and>
65
+ </condition>
66
+ <condition property="main.class.available">
67
+ <and>
68
+ <isset property="main.class"/>
69
+ <not>
70
+ <equals arg1="${main.class}" arg2="" trim="true"/>
71
+ </not>
72
+ </and>
73
+ </condition>
74
+ <condition property="manifest.available+main.class">
75
+ <and>
76
+ <isset property="manifest.available"/>
77
+ <isset property="main.class.available"/>
78
+ </and>
79
+ </condition>
80
+ <condition property="do.archive">
81
+ <not>
82
+ <istrue value="${jar.archive.disabled}"/>
83
+ </not>
84
+ </condition>
85
+ <condition property="do.mkdist">
86
+ <and>
87
+ <isset property="do.archive"/>
88
+ <isset property="libs.CopyLibs.classpath"/>
89
+ <not>
90
+ <istrue value="${mkdist.disabled}"/>
91
+ </not>
92
+ </and>
93
+ </condition>
94
+ <condition property="manifest.available+main.class+mkdist.available">
95
+ <and>
96
+ <istrue value="${manifest.available+main.class}"/>
97
+ <isset property="do.mkdist"/>
98
+ </and>
99
+ </condition>
100
+ <condition property="do.archive+manifest.available">
101
+ <and>
102
+ <isset property="manifest.available"/>
103
+ <istrue value="${do.archive}"/>
104
+ </and>
105
+ </condition>
106
+ <condition property="do.archive+main.class.available">
107
+ <and>
108
+ <isset property="main.class.available"/>
109
+ <istrue value="${do.archive}"/>
110
+ </and>
111
+ </condition>
112
+ <condition property="do.archive+splashscreen.available">
113
+ <and>
114
+ <isset property="splashscreen.available"/>
115
+ <istrue value="${do.archive}"/>
116
+ </and>
117
+ </condition>
118
+ <condition property="do.archive+manifest.available+main.class">
119
+ <and>
120
+ <istrue value="${manifest.available+main.class}"/>
121
+ <istrue value="${do.archive}"/>
122
+ </and>
123
+ </condition>
124
+ <condition property="manifest.available-mkdist.available">
125
+ <or>
126
+ <istrue value="${manifest.available}"/>
127
+ <isset property="do.mkdist"/>
128
+ </or>
129
+ </condition>
130
+ <condition property="manifest.available+main.class-mkdist.available">
131
+ <or>
132
+ <istrue value="${manifest.available+main.class}"/>
133
+ <isset property="do.mkdist"/>
134
+ </or>
135
+ </condition>
136
+ <condition property="have.tests">
137
+ <or>
138
+ <available file="${test.src.dir}"/>
139
+ </or>
140
+ </condition>
141
+ <condition property="have.sources">
142
+ <or>
143
+ <available file="${src.dir}"/>
144
+ </or>
145
+ </condition>
146
+ <condition property="netbeans.home+have.tests">
147
+ <and>
148
+ <isset property="netbeans.home"/>
149
+ <isset property="have.tests"/>
150
+ </and>
151
+ </condition>
152
+ <condition property="no.javadoc.preview">
153
+ <and>
154
+ <isset property="javadoc.preview"/>
155
+ <isfalse value="${javadoc.preview}"/>
156
+ </and>
157
+ </condition>
158
+ <property name="run.jvmargs" value=""/>
159
+ <property name="run.jvmargs.ide" value=""/>
160
+ <property name="javac.compilerargs" value=""/>
161
+ <property name="work.dir" value="${basedir}"/>
162
+ <condition property="no.deps">
163
+ <and>
164
+ <istrue value="${no.dependencies}"/>
165
+ </and>
166
+ </condition>
167
+ <property name="javac.debug" value="true"/>
168
+ <property name="javadoc.preview" value="true"/>
169
+ <property name="application.args" value=""/>
170
+ <property name="source.encoding" value="${file.encoding}"/>
171
+ <property name="runtime.encoding" value="${source.encoding}"/>
172
+ <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
173
+ <and>
174
+ <isset property="javadoc.encoding"/>
175
+ <not>
176
+ <equals arg1="${javadoc.encoding}" arg2=""/>
177
+ </not>
178
+ </and>
179
+ </condition>
180
+ <property name="javadoc.encoding.used" value="${source.encoding}"/>
181
+ <property name="includes" value="**"/>
182
+ <property name="excludes" value=""/>
183
+ <property name="do.depend" value="false"/>
184
+ <condition property="do.depend.true">
185
+ <istrue value="${do.depend}"/>
186
+ </condition>
187
+ <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
188
+ <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
189
+ <length length="0" string="${endorsed.classpath}" when="greater"/>
190
+ </condition>
191
+ <condition else="false" property="jdkBug6558476">
192
+ <and>
193
+ <matches pattern="1\.[56]" string="${java.specification.version}"/>
194
+ <not>
195
+ <os family="unix"/>
196
+ </not>
197
+ </and>
198
+ </condition>
199
+ <property name="javac.fork" value="${jdkBug6558476}"/>
200
+ <property name="jar.index" value="false"/>
201
+ <property name="jar.index.metainf" value="${jar.index}"/>
202
+ <property name="copylibs.rebase" value="true"/>
203
+ <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
204
+ <condition property="junit.available">
205
+ <or>
206
+ <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
207
+ <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
208
+ </or>
209
+ </condition>
210
+ <condition property="testng.available">
211
+ <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
212
+ </condition>
213
+ <condition property="junit+testng.available">
214
+ <and>
215
+ <istrue value="${junit.available}"/>
216
+ <istrue value="${testng.available}"/>
217
+ </and>
218
+ </condition>
219
+ <condition else="testng" property="testng.mode" value="mixed">
220
+ <istrue value="${junit+testng.available}"/>
221
+ </condition>
222
+ <condition else="" property="testng.debug.mode" value="-mixed">
223
+ <istrue value="${junit+testng.available}"/>
224
+ </condition>
225
+ </target>
226
+ <target name="-post-init">
227
+ <!-- Empty placeholder for easier customization. -->
228
+ <!-- You can override this target in the ../build.xml file. -->
229
+ </target>
230
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
231
+ <fail unless="src.dir">Must set src.dir</fail>
232
+ <fail unless="test.src.dir">Must set test.src.dir</fail>
233
+ <fail unless="build.dir">Must set build.dir</fail>
234
+ <fail unless="dist.dir">Must set dist.dir</fail>
235
+ <fail unless="build.classes.dir">Must set build.classes.dir</fail>
236
+ <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
237
+ <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
238
+ <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
239
+ <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
240
+ <fail unless="dist.jar">Must set dist.jar</fail>
241
+ </target>
242
+ <target name="-init-macrodef-property">
243
+ <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
244
+ <attribute name="name"/>
245
+ <attribute name="value"/>
246
+ <sequential>
247
+ <property name="@{name}" value="${@{value}}"/>
248
+ </sequential>
249
+ </macrodef>
250
+ </target>
251
+ <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
252
+ <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
253
+ <attribute default="${src.dir}" name="srcdir"/>
254
+ <attribute default="${build.classes.dir}" name="destdir"/>
255
+ <attribute default="${javac.classpath}" name="classpath"/>
256
+ <attribute default="${javac.processorpath}" name="processorpath"/>
257
+ <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
258
+ <attribute default="${includes}" name="includes"/>
259
+ <attribute default="${excludes}" name="excludes"/>
260
+ <attribute default="${javac.debug}" name="debug"/>
261
+ <attribute default="${empty.dir}" name="sourcepath"/>
262
+ <attribute default="${empty.dir}" name="gensrcdir"/>
263
+ <element name="customize" optional="true"/>
264
+ <sequential>
265
+ <property location="${build.dir}/empty" name="empty.dir"/>
266
+ <mkdir dir="${empty.dir}"/>
267
+ <mkdir dir="@{apgeneratedsrcdir}"/>
268
+ <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}">
269
+ <src>
270
+ <dirset dir="@{gensrcdir}" erroronmissingdir="false">
271
+ <include name="*"/>
272
+ </dirset>
273
+ </src>
274
+ <classpath>
275
+ <path path="@{classpath}"/>
276
+ </classpath>
277
+ <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
278
+ <compilerarg line="${javac.compilerargs}"/>
279
+ <compilerarg value="-processorpath"/>
280
+ <compilerarg path="@{processorpath}:${empty.dir}"/>
281
+ <compilerarg line="${ap.processors.internal}"/>
282
+ <compilerarg line="${annotation.processing.processor.options}"/>
283
+ <compilerarg value="-s"/>
284
+ <compilerarg path="@{apgeneratedsrcdir}"/>
285
+ <compilerarg line="${ap.proc.none.internal}"/>
286
+ <customize/>
287
+ </javac>
288
+ </sequential>
289
+ </macrodef>
290
+ </target>
291
+ <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
292
+ <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
293
+ <attribute default="${src.dir}" name="srcdir"/>
294
+ <attribute default="${build.classes.dir}" name="destdir"/>
295
+ <attribute default="${javac.classpath}" name="classpath"/>
296
+ <attribute default="${javac.processorpath}" name="processorpath"/>
297
+ <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
298
+ <attribute default="${includes}" name="includes"/>
299
+ <attribute default="${excludes}" name="excludes"/>
300
+ <attribute default="${javac.debug}" name="debug"/>
301
+ <attribute default="${empty.dir}" name="sourcepath"/>
302
+ <attribute default="${empty.dir}" name="gensrcdir"/>
303
+ <element name="customize" optional="true"/>
304
+ <sequential>
305
+ <property location="${build.dir}/empty" name="empty.dir"/>
306
+ <mkdir dir="${empty.dir}"/>
307
+ <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}">
308
+ <src>
309
+ <dirset dir="@{gensrcdir}" erroronmissingdir="false">
310
+ <include name="*"/>
311
+ </dirset>
312
+ </src>
313
+ <classpath>
314
+ <path path="@{classpath}"/>
315
+ </classpath>
316
+ <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
317
+ <compilerarg line="${javac.compilerargs}"/>
318
+ <customize/>
319
+ </javac>
320
+ </sequential>
321
+ </macrodef>
322
+ </target>
323
+ <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
324
+ <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
325
+ <attribute default="${src.dir}" name="srcdir"/>
326
+ <attribute default="${build.classes.dir}" name="destdir"/>
327
+ <attribute default="${javac.classpath}" name="classpath"/>
328
+ <sequential>
329
+ <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
330
+ <classpath>
331
+ <path path="@{classpath}"/>
332
+ </classpath>
333
+ </depend>
334
+ </sequential>
335
+ </macrodef>
336
+ <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
337
+ <attribute default="${build.classes.dir}" name="destdir"/>
338
+ <sequential>
339
+ <fail unless="javac.includes">Must set javac.includes</fail>
340
+ <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
341
+ <path>
342
+ <filelist dir="@{destdir}" files="${javac.includes}"/>
343
+ </path>
344
+ <globmapper from="*.java" to="*.class"/>
345
+ </pathconvert>
346
+ <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
347
+ <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
348
+ <delete>
349
+ <files includesfile="${javac.includesfile.binary}"/>
350
+ </delete>
351
+ <delete>
352
+ <fileset file="${javac.includesfile.binary}"/>
353
+ </delete>
354
+ </sequential>
355
+ </macrodef>
356
+ </target>
357
+ <target if="${junit.available}" name="-init-macrodef-junit-init">
358
+ <condition else="false" property="nb.junit.batch" value="true">
359
+ <and>
360
+ <istrue value="${junit.available}"/>
361
+ <not>
362
+ <isset property="test.method"/>
363
+ </not>
364
+ </and>
365
+ </condition>
366
+ <condition else="false" property="nb.junit.single" value="true">
367
+ <and>
368
+ <istrue value="${junit.available}"/>
369
+ <isset property="test.method"/>
370
+ </and>
371
+ </condition>
372
+ </target>
373
+ <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
374
+ <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
375
+ <attribute default="${includes}" name="includes"/>
376
+ <attribute default="${excludes}" name="excludes"/>
377
+ <attribute default="**" name="testincludes"/>
378
+ <attribute default="" name="testmethods"/>
379
+ <element name="customize" optional="true"/>
380
+ <sequential>
381
+ <property name="junit.forkmode" value="perTest"/>
382
+ <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
383
+ <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
384
+ <syspropertyset>
385
+ <propertyref prefix="test-sys-prop."/>
386
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
387
+ </syspropertyset>
388
+ <formatter type="brief" usefile="false"/>
389
+ <formatter type="xml"/>
390
+ <jvmarg value="-ea"/>
391
+ <customize/>
392
+ </junit>
393
+ </sequential>
394
+ </macrodef>
395
+ </target>
396
+ <target if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
397
+ <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
398
+ <attribute default="${includes}" name="includes"/>
399
+ <attribute default="${excludes}" name="excludes"/>
400
+ <attribute default="**" name="testincludes"/>
401
+ <attribute default="" name="testmethods"/>
402
+ <element name="customize" optional="true"/>
403
+ <sequential>
404
+ <property name="junit.forkmode" value="perTest"/>
405
+ <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
406
+ <batchtest todir="${build.test.results.dir}">
407
+ <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
408
+ <filename name="@{testincludes}"/>
409
+ </fileset>
410
+ </batchtest>
411
+ <syspropertyset>
412
+ <propertyref prefix="test-sys-prop."/>
413
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
414
+ </syspropertyset>
415
+ <formatter type="brief" usefile="false"/>
416
+ <formatter type="xml"/>
417
+ <jvmarg value="-ea"/>
418
+ <customize/>
419
+ </junit>
420
+ </sequential>
421
+ </macrodef>
422
+ </target>
423
+ <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
424
+ <target if="${testng.available}" name="-init-macrodef-testng">
425
+ <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
426
+ <attribute default="${includes}" name="includes"/>
427
+ <attribute default="${excludes}" name="excludes"/>
428
+ <attribute default="**" name="testincludes"/>
429
+ <attribute default="" name="testmethods"/>
430
+ <element name="customize" optional="true"/>
431
+ <sequential>
432
+ <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
433
+ <isset property="test.method"/>
434
+ </condition>
435
+ <union id="test.set">
436
+ <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
437
+ <filename name="@{testincludes}"/>
438
+ </fileset>
439
+ </union>
440
+ <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
441
+ <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="lingscope" testname="TestNG tests" workingDir="${work.dir}">
442
+ <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
443
+ <propertyset>
444
+ <propertyref prefix="test-sys-prop."/>
445
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
446
+ </propertyset>
447
+ <customize/>
448
+ </testng>
449
+ </sequential>
450
+ </macrodef>
451
+ </target>
452
+ <target name="-init-macrodef-test-impl">
453
+ <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
454
+ <attribute default="${includes}" name="includes"/>
455
+ <attribute default="${excludes}" name="excludes"/>
456
+ <attribute default="**" name="testincludes"/>
457
+ <attribute default="" name="testmethods"/>
458
+ <element implicit="true" name="customize" optional="true"/>
459
+ <sequential>
460
+ <echo>No tests executed.</echo>
461
+ </sequential>
462
+ </macrodef>
463
+ </target>
464
+ <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
465
+ <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
466
+ <attribute default="${includes}" name="includes"/>
467
+ <attribute default="${excludes}" name="excludes"/>
468
+ <attribute default="**" name="testincludes"/>
469
+ <attribute default="" name="testmethods"/>
470
+ <element implicit="true" name="customize" optional="true"/>
471
+ <sequential>
472
+ <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
473
+ <customize/>
474
+ </j2seproject3:junit>
475
+ </sequential>
476
+ </macrodef>
477
+ </target>
478
+ <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
479
+ <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
480
+ <attribute default="${includes}" name="includes"/>
481
+ <attribute default="${excludes}" name="excludes"/>
482
+ <attribute default="**" name="testincludes"/>
483
+ <attribute default="" name="testmethods"/>
484
+ <element implicit="true" name="customize" optional="true"/>
485
+ <sequential>
486
+ <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
487
+ <customize/>
488
+ </j2seproject3:testng>
489
+ </sequential>
490
+ </macrodef>
491
+ </target>
492
+ <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
493
+ <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
494
+ <attribute default="${includes}" name="includes"/>
495
+ <attribute default="${excludes}" name="excludes"/>
496
+ <attribute default="**" name="testincludes"/>
497
+ <attribute default="" name="testmethods"/>
498
+ <sequential>
499
+ <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
500
+ <customize>
501
+ <classpath>
502
+ <path path="${run.test.classpath}"/>
503
+ </classpath>
504
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
505
+ <jvmarg line="${run.jvmargs}"/>
506
+ <jvmarg line="${run.jvmargs.ide}"/>
507
+ </customize>
508
+ </j2seproject3:test-impl>
509
+ </sequential>
510
+ </macrodef>
511
+ </target>
512
+ <target if="${junit.available}" name="-init-macrodef-junit-debug">
513
+ <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
514
+ <attribute default="${main.class}" name="testClass"/>
515
+ <attribute default="" name="testMethod"/>
516
+ <element name="customize2" optional="true"/>
517
+ <sequential>
518
+ <property location="${build.test.results.dir}/TEST-@{testClass}.xml" name="test.report.file"/>
519
+ <delete file="${test.report.file}"/>
520
+ <mkdir dir="${build.test.results.dir}"/>
521
+ <condition else="" property="junit.methods.arg" value="methods=@{testMethod}">
522
+ <isset property="test.method"/>
523
+ </condition>
524
+ <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}">
525
+ <customize>
526
+ <arg value="@{testClass}"/>
527
+ <arg value="${junit.methods.arg}"/>
528
+ <arg value="showoutput=true"/>
529
+ <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
530
+ <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
531
+ <customize2/>
532
+ </customize>
533
+ </j2seproject3:debug>
534
+ </sequential>
535
+ </macrodef>
536
+ </target>
537
+ <target depends="-init-macrodef-junit-debug" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
538
+ <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
539
+ <attribute default="${main.class}" name="testClass"/>
540
+ <attribute default="" name="testMethod"/>
541
+ <element implicit="true" name="customize2" optional="true"/>
542
+ <sequential>
543
+ <j2seproject3:junit-debug testClass="@{testClass}" testMethod="@{testMethod}">
544
+ <customize2/>
545
+ </j2seproject3:junit-debug>
546
+ </sequential>
547
+ </macrodef>
548
+ </target>
549
+ <target if="${testng.available}" name="-init-macrodef-testng-debug">
550
+ <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
551
+ <attribute default="${main.class}" name="testClass"/>
552
+ <attribute default="" name="testMethod"/>
553
+ <element name="customize2" optional="true"/>
554
+ <sequential>
555
+ <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
556
+ <isset property="test.method"/>
557
+ </condition>
558
+ <condition else="-suitename lingscope -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
559
+ <matches pattern=".*\.xml" string="@{testClass}"/>
560
+ </condition>
561
+ <delete dir="${build.test.results.dir}" quiet="true"/>
562
+ <mkdir dir="${build.test.results.dir}"/>
563
+ <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
564
+ <customize>
565
+ <customize2/>
566
+ <jvmarg value="-ea"/>
567
+ <arg line="${testng.debug.mode}"/>
568
+ <arg line="-d ${build.test.results.dir}"/>
569
+ <arg line="-listener org.testng.reporters.VerboseReporter"/>
570
+ <arg line="${testng.cmd.args}"/>
571
+ </customize>
572
+ </j2seproject3:debug>
573
+ </sequential>
574
+ </macrodef>
575
+ </target>
576
+ <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
577
+ <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
578
+ <attribute default="${main.class}" name="testClass"/>
579
+ <attribute default="" name="testMethod"/>
580
+ <element implicit="true" name="customize2" optional="true"/>
581
+ <sequential>
582
+ <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
583
+ <customize2/>
584
+ </j2seproject3:testng-debug>
585
+ </sequential>
586
+ </macrodef>
587
+ </target>
588
+ <target depends="-init-macrodef-junit-debug-impl,-init-macrodef-testng-debug-impl" name="-init-macrodef-test-debug">
589
+ <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
590
+ <attribute default="${main.class}" name="testClass"/>
591
+ <attribute default="" name="testMethod"/>
592
+ <sequential>
593
+ <j2seproject3:test-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
594
+ <customize2>
595
+ <syspropertyset>
596
+ <propertyref prefix="test-sys-prop."/>
597
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
598
+ </syspropertyset>
599
+ </customize2>
600
+ </j2seproject3:test-debug-impl>
601
+ </sequential>
602
+ </macrodef>
603
+ </target>
604
+ <!--
605
+ pre NB7.2 profiling section; consider it deprecated
606
+ -->
607
+ <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
608
+ <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
609
+ <!-- Empty placeholder for easier customization. -->
610
+ <!-- You can override this target in the ../build.xml file. -->
611
+ </target>
612
+ <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
613
+ <!-- Empty placeholder for easier customization. -->
614
+ <!-- You can override this target in the ../build.xml file. -->
615
+ </target>
616
+ <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
617
+ <macrodef name="resolve">
618
+ <attribute name="name"/>
619
+ <attribute name="value"/>
620
+ <sequential>
621
+ <property name="@{name}" value="${env.@{value}}"/>
622
+ </sequential>
623
+ </macrodef>
624
+ <macrodef name="profile">
625
+ <attribute default="${main.class}" name="classname"/>
626
+ <element name="customize" optional="true"/>
627
+ <sequential>
628
+ <property environment="env"/>
629
+ <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
630
+ <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
631
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
632
+ <jvmarg value="${profiler.info.jvmargs.agent}"/>
633
+ <jvmarg line="${profiler.info.jvmargs}"/>
634
+ <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
635
+ <arg line="${application.args}"/>
636
+ <classpath>
637
+ <path path="${run.classpath}"/>
638
+ </classpath>
639
+ <syspropertyset>
640
+ <propertyref prefix="run-sys-prop."/>
641
+ <mapper from="run-sys-prop.*" to="*" type="glob"/>
642
+ </syspropertyset>
643
+ <customize/>
644
+ </java>
645
+ </sequential>
646
+ </macrodef>
647
+ </target>
648
+ <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
649
+ <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
650
+ <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
651
+ </target>
652
+ <!--
653
+ end of pre NB7.2 profiling section
654
+ -->
655
+ <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
656
+ <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
657
+ <attribute default="${main.class}" name="name"/>
658
+ <attribute default="${debug.classpath}" name="classpath"/>
659
+ <attribute default="" name="stopclassname"/>
660
+ <sequential>
661
+ <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
662
+ <classpath>
663
+ <path path="@{classpath}"/>
664
+ </classpath>
665
+ </nbjpdastart>
666
+ </sequential>
667
+ </macrodef>
668
+ <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
669
+ <attribute default="${build.classes.dir}" name="dir"/>
670
+ <sequential>
671
+ <nbjpdareload>
672
+ <fileset dir="@{dir}" includes="${fix.classes}">
673
+ <include name="${fix.includes}*.class"/>
674
+ </fileset>
675
+ </nbjpdareload>
676
+ </sequential>
677
+ </macrodef>
678
+ </target>
679
+ <target name="-init-debug-args">
680
+ <property name="version-output" value="java version &quot;${ant.java.version}"/>
681
+ <condition property="have-jdk-older-than-1.4">
682
+ <or>
683
+ <contains string="${version-output}" substring="java version &quot;1.0"/>
684
+ <contains string="${version-output}" substring="java version &quot;1.1"/>
685
+ <contains string="${version-output}" substring="java version &quot;1.2"/>
686
+ <contains string="${version-output}" substring="java version &quot;1.3"/>
687
+ </or>
688
+ </condition>
689
+ <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
690
+ <istrue value="${have-jdk-older-than-1.4}"/>
691
+ </condition>
692
+ <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
693
+ <os family="windows"/>
694
+ </condition>
695
+ <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
696
+ <isset property="debug.transport"/>
697
+ </condition>
698
+ </target>
699
+ <target depends="-init-debug-args" name="-init-macrodef-debug">
700
+ <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
701
+ <attribute default="${main.class}" name="classname"/>
702
+ <attribute default="${debug.classpath}" name="classpath"/>
703
+ <element name="customize" optional="true"/>
704
+ <sequential>
705
+ <java classname="@{classname}" dir="${work.dir}" fork="true">
706
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
707
+ <jvmarg line="${debug-args-line}"/>
708
+ <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
709
+ <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
710
+ <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
711
+ <jvmarg line="${run.jvmargs}"/>
712
+ <jvmarg line="${run.jvmargs.ide}"/>
713
+ <classpath>
714
+ <path path="@{classpath}"/>
715
+ </classpath>
716
+ <syspropertyset>
717
+ <propertyref prefix="run-sys-prop."/>
718
+ <mapper from="run-sys-prop.*" to="*" type="glob"/>
719
+ </syspropertyset>
720
+ <customize/>
721
+ </java>
722
+ </sequential>
723
+ </macrodef>
724
+ </target>
725
+ <target name="-init-macrodef-java">
726
+ <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
727
+ <attribute default="${main.class}" name="classname"/>
728
+ <attribute default="${run.classpath}" name="classpath"/>
729
+ <attribute default="jvm" name="jvm"/>
730
+ <element name="customize" optional="true"/>
731
+ <sequential>
732
+ <java classname="@{classname}" dir="${work.dir}" fork="true">
733
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
734
+ <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
735
+ <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
736
+ <jvmarg line="${run.jvmargs}"/>
737
+ <jvmarg line="${run.jvmargs.ide}"/>
738
+ <classpath>
739
+ <path path="@{classpath}"/>
740
+ </classpath>
741
+ <syspropertyset>
742
+ <propertyref prefix="run-sys-prop."/>
743
+ <mapper from="run-sys-prop.*" to="*" type="glob"/>
744
+ </syspropertyset>
745
+ <customize/>
746
+ </java>
747
+ </sequential>
748
+ </macrodef>
749
+ </target>
750
+ <target name="-init-macrodef-copylibs">
751
+ <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
752
+ <attribute default="${manifest.file}" name="manifest"/>
753
+ <element name="customize" optional="true"/>
754
+ <sequential>
755
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
756
+ <pathconvert property="run.classpath.without.build.classes.dir">
757
+ <path path="${run.classpath}"/>
758
+ <map from="${build.classes.dir.resolved}" to=""/>
759
+ </pathconvert>
760
+ <pathconvert pathsep=" " property="jar.classpath">
761
+ <path path="${run.classpath.without.build.classes.dir}"/>
762
+ <chainedmapper>
763
+ <flattenmapper/>
764
+ <globmapper from="*" to="lib/*"/>
765
+ </chainedmapper>
766
+ </pathconvert>
767
+ <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
768
+ <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
769
+ <fileset dir="${build.classes.dir}"/>
770
+ <manifest>
771
+ <attribute name="Class-Path" value="${jar.classpath}"/>
772
+ <customize/>
773
+ </manifest>
774
+ </copylibs>
775
+ </sequential>
776
+ </macrodef>
777
+ </target>
778
+ <target name="-init-presetdef-jar">
779
+ <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
780
+ <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
781
+ <j2seproject1:fileset dir="${build.classes.dir}"/>
782
+ </jar>
783
+ </presetdef>
784
+ </target>
785
+ <target name="-init-ap-cmdline-properties">
786
+ <property name="annotation.processing.enabled" value="true"/>
787
+ <property name="annotation.processing.processors.list" value=""/>
788
+ <property name="annotation.processing.processor.options" value=""/>
789
+ <property name="annotation.processing.run.all.processors" value="true"/>
790
+ <property name="javac.processorpath" value="${javac.classpath}"/>
791
+ <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
792
+ <condition property="ap.supported.internal" value="true">
793
+ <not>
794
+ <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
795
+ </not>
796
+ </condition>
797
+ </target>
798
+ <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
799
+ <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
800
+ <isfalse value="${annotation.processing.run.all.processors}"/>
801
+ </condition>
802
+ <condition else="" property="ap.proc.none.internal" value="-proc:none">
803
+ <isfalse value="${annotation.processing.enabled}"/>
804
+ </condition>
805
+ </target>
806
+ <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
807
+ <property name="ap.cmd.line.internal" value=""/>
808
+ </target>
809
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
810
+ <!--
811
+ ===================
812
+ COMPILATION SECTION
813
+ ===================
814
+ -->
815
+ <target name="-deps-jar-init" unless="built-jar.properties">
816
+ <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
817
+ <delete file="${built-jar.properties}" quiet="true"/>
818
+ </target>
819
+ <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
820
+ <echo level="warn" message="Cycle detected: lingscope was already built"/>
821
+ </target>
822
+ <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
823
+ <mkdir dir="${build.dir}"/>
824
+ <touch file="${built-jar.properties}" verbose="false"/>
825
+ <property file="${built-jar.properties}" prefix="already.built.jar."/>
826
+ <antcall target="-warn-already-built-jar"/>
827
+ <propertyfile file="${built-jar.properties}">
828
+ <entry key="${basedir}" value=""/>
829
+ </propertyfile>
830
+ </target>
831
+ <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
832
+ <target depends="init" name="-check-automatic-build">
833
+ <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
834
+ </target>
835
+ <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
836
+ <antcall target="clean"/>
837
+ </target>
838
+ <target depends="init,deps-jar" name="-pre-pre-compile">
839
+ <mkdir dir="${build.classes.dir}"/>
840
+ </target>
841
+ <target name="-pre-compile">
842
+ <!-- Empty placeholder for easier customization. -->
843
+ <!-- You can override this target in the ../build.xml file. -->
844
+ </target>
845
+ <target if="do.depend.true" name="-compile-depend">
846
+ <pathconvert property="build.generated.subdirs">
847
+ <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
848
+ <include name="*"/>
849
+ </dirset>
850
+ </pathconvert>
851
+ <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
852
+ </target>
853
+ <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
854
+ <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
855
+ <copy todir="${build.classes.dir}">
856
+ <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
857
+ </copy>
858
+ </target>
859
+ <target if="has.persistence.xml" name="-copy-persistence-xml">
860
+ <mkdir dir="${build.classes.dir}/META-INF"/>
861
+ <copy todir="${build.classes.dir}/META-INF">
862
+ <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
863
+ </copy>
864
+ </target>
865
+ <target name="-post-compile">
866
+ <!-- Empty placeholder for easier customization. -->
867
+ <!-- You can override this target in the ../build.xml file. -->
868
+ </target>
869
+ <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
870
+ <target name="-pre-compile-single">
871
+ <!-- Empty placeholder for easier customization. -->
872
+ <!-- You can override this target in the ../build.xml file. -->
873
+ </target>
874
+ <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
875
+ <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
876
+ <j2seproject3:force-recompile/>
877
+ <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
878
+ </target>
879
+ <target name="-post-compile-single">
880
+ <!-- Empty placeholder for easier customization. -->
881
+ <!-- You can override this target in the ../build.xml file. -->
882
+ </target>
883
+ <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
884
+ <!--
885
+ ====================
886
+ JAR BUILDING SECTION
887
+ ====================
888
+ -->
889
+ <target depends="init" name="-pre-pre-jar">
890
+ <dirname file="${dist.jar}" property="dist.jar.dir"/>
891
+ <mkdir dir="${dist.jar.dir}"/>
892
+ </target>
893
+ <target name="-pre-jar">
894
+ <!-- Empty placeholder for easier customization. -->
895
+ <!-- You can override this target in the ../build.xml file. -->
896
+ </target>
897
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
898
+ <j2seproject1:jar/>
899
+ </target>
900
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
901
+ <j2seproject1:jar manifest="${manifest.file}"/>
902
+ </target>
903
+ <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">
904
+ <j2seproject1:jar manifest="${manifest.file}">
905
+ <j2seproject1:manifest>
906
+ <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
907
+ </j2seproject1:manifest>
908
+ </j2seproject1:jar>
909
+ <echo level="info">To run this application from the command line without Ant, try:</echo>
910
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
911
+ <property location="${dist.jar}" name="dist.jar.resolved"/>
912
+ <pathconvert property="run.classpath.with.dist.jar">
913
+ <path path="${run.classpath}"/>
914
+ <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
915
+ </pathconvert>
916
+ <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
917
+ </target>
918
+ <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
919
+ <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
920
+ <touch file="${tmp.manifest.file}" verbose="false"/>
921
+ </target>
922
+ <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
923
+ <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
924
+ <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
925
+ </target>
926
+ <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
927
+ <manifest file="${tmp.manifest.file}" mode="update">
928
+ <attribute name="Main-Class" value="${main.class}"/>
929
+ </manifest>
930
+ </target>
931
+ <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
932
+ <basename file="${application.splash}" property="splashscreen.basename"/>
933
+ <mkdir dir="${build.classes.dir}/META-INF"/>
934
+ <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
935
+ <manifest file="${tmp.manifest.file}" mode="update">
936
+ <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
937
+ </manifest>
938
+ </target>
939
+ <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
940
+ <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
941
+ <echo level="info">To run this application from the command line without Ant, try:</echo>
942
+ <property location="${dist.jar}" name="dist.jar.resolved"/>
943
+ <echo level="info">java -jar "${dist.jar.resolved}"</echo>
944
+ </target>
945
+ <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
946
+ <delete>
947
+ <fileset file="${tmp.manifest.file}"/>
948
+ </delete>
949
+ </target>
950
+ <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
951
+ <target name="-post-jar">
952
+ <!-- Empty placeholder for easier customization. -->
953
+ <!-- You can override this target in the ../build.xml file. -->
954
+ </target>
955
+ <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
956
+ <!--
957
+ =================
958
+ EXECUTION SECTION
959
+ =================
960
+ -->
961
+ <target depends="init,compile" description="Run a main class." name="run">
962
+ <j2seproject1:java>
963
+ <customize>
964
+ <arg line="${application.args}"/>
965
+ </customize>
966
+ </j2seproject1:java>
967
+ </target>
968
+ <target name="-do-not-recompile">
969
+ <property name="javac.includes.binary" value=""/>
970
+ </target>
971
+ <target depends="init,compile-single" name="run-single">
972
+ <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
973
+ <j2seproject1:java classname="${run.class}"/>
974
+ </target>
975
+ <target depends="init,compile-test-single" name="run-test-with-main">
976
+ <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
977
+ <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
978
+ </target>
979
+ <!--
980
+ =================
981
+ DEBUGGING SECTION
982
+ =================
983
+ -->
984
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger">
985
+ <j2seproject1:nbjpdastart name="${debug.class}"/>
986
+ </target>
987
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
988
+ <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
989
+ </target>
990
+ <target depends="init,compile" name="-debug-start-debuggee">
991
+ <j2seproject3:debug>
992
+ <customize>
993
+ <arg line="${application.args}"/>
994
+ </customize>
995
+ </j2seproject3:debug>
996
+ </target>
997
+ <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
998
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
999
+ <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1000
+ </target>
1001
+ <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1002
+ <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1003
+ <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1004
+ <j2seproject3:debug classname="${debug.class}"/>
1005
+ </target>
1006
+ <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1007
+ <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1008
+ <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1009
+ <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1010
+ </target>
1011
+ <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1012
+ <target depends="init" name="-pre-debug-fix">
1013
+ <fail unless="fix.includes">Must set fix.includes</fail>
1014
+ <property name="javac.includes" value="${fix.includes}.java"/>
1015
+ </target>
1016
+ <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1017
+ <j2seproject1:nbjpdareload/>
1018
+ </target>
1019
+ <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1020
+ <!--
1021
+ =================
1022
+ PROFILING SECTION
1023
+ =================
1024
+ -->
1025
+ <!--
1026
+ pre NB7.2 profiler integration
1027
+ -->
1028
+ <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1029
+ <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1030
+ <nbprofiledirect>
1031
+ <classpath>
1032
+ <path path="${run.classpath}"/>
1033
+ </classpath>
1034
+ </nbprofiledirect>
1035
+ <profile/>
1036
+ </target>
1037
+ <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1038
+ <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1039
+ <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1040
+ <nbprofiledirect>
1041
+ <classpath>
1042
+ <path path="${run.classpath}"/>
1043
+ </classpath>
1044
+ </nbprofiledirect>
1045
+ <profile classname="${profile.class}"/>
1046
+ </target>
1047
+ <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1048
+ <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1049
+ <nbprofiledirect>
1050
+ <classpath>
1051
+ <path path="${run.classpath}"/>
1052
+ </classpath>
1053
+ </nbprofiledirect>
1054
+ <profile classname="sun.applet.AppletViewer">
1055
+ <customize>
1056
+ <arg value="${applet.url}"/>
1057
+ </customize>
1058
+ </profile>
1059
+ </target>
1060
+ <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1061
+ <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1062
+ <nbprofiledirect>
1063
+ <classpath>
1064
+ <path path="${run.test.classpath}"/>
1065
+ </classpath>
1066
+ </nbprofiledirect>
1067
+ <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1068
+ <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1069
+ <jvmarg value="${profiler.info.jvmargs.agent}"/>
1070
+ <jvmarg line="${profiler.info.jvmargs}"/>
1071
+ <test name="${profile.class}"/>
1072
+ <classpath>
1073
+ <path path="${run.test.classpath}"/>
1074
+ </classpath>
1075
+ <syspropertyset>
1076
+ <propertyref prefix="test-sys-prop."/>
1077
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
1078
+ </syspropertyset>
1079
+ <formatter type="brief" usefile="false"/>
1080
+ <formatter type="xml"/>
1081
+ </junit>
1082
+ </target>
1083
+ <!--
1084
+ end of pre NB72 profiling section
1085
+ -->
1086
+ <target if="netbeans.home" name="-profile-check">
1087
+ <condition property="profiler.configured">
1088
+ <or>
1089
+ <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1090
+ <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1091
+ </or>
1092
+ </condition>
1093
+ </target>
1094
+ <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1095
+ <startprofiler/>
1096
+ <antcall target="run"/>
1097
+ </target>
1098
+ <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
1099
+ <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1100
+ <startprofiler/>
1101
+ <antcall target="run-single"/>
1102
+ </target>
1103
+ <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1104
+ <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1105
+ <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1106
+ <startprofiler/>
1107
+ <antcall target="test-single"/>
1108
+ </target>
1109
+ <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1110
+ <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1111
+ <startprofiler/>
1112
+ <antcal target="run-test-with-main"/>
1113
+ </target>
1114
+ <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1115
+ <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1116
+ <startprofiler/>
1117
+ <antcall target="run-applet"/>
1118
+ </target>
1119
+ <!--
1120
+ ===============
1121
+ JAVADOC SECTION
1122
+ ===============
1123
+ -->
1124
+ <target depends="init" if="have.sources" name="-javadoc-build">
1125
+ <mkdir dir="${dist.javadoc.dir}"/>
1126
+ <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1127
+ <and>
1128
+ <isset property="endorsed.classpath.cmd.line.arg"/>
1129
+ <not>
1130
+ <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1131
+ </not>
1132
+ </and>
1133
+ </condition>
1134
+ <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}">
1135
+ <classpath>
1136
+ <path path="${javac.classpath}"/>
1137
+ </classpath>
1138
+ <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
1139
+ <filename name="**/*.java"/>
1140
+ </fileset>
1141
+ <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1142
+ <include name="**/*.java"/>
1143
+ <exclude name="*.java"/>
1144
+ </fileset>
1145
+ <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1146
+ </javadoc>
1147
+ <copy todir="${dist.javadoc.dir}">
1148
+ <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1149
+ <filename name="**/doc-files/**"/>
1150
+ </fileset>
1151
+ <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1152
+ <include name="**/doc-files/**"/>
1153
+ </fileset>
1154
+ </copy>
1155
+ </target>
1156
+ <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1157
+ <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1158
+ </target>
1159
+ <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1160
+ <!--
1161
+ =========================
1162
+ TEST COMPILATION SECTION
1163
+ =========================
1164
+ -->
1165
+ <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1166
+ <mkdir dir="${build.test.classes.dir}"/>
1167
+ </target>
1168
+ <target name="-pre-compile-test">
1169
+ <!-- Empty placeholder for easier customization. -->
1170
+ <!-- You can override this target in the ../build.xml file. -->
1171
+ </target>
1172
+ <target if="do.depend.true" name="-compile-test-depend">
1173
+ <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1174
+ </target>
1175
+ <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1176
+ <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}"/>
1177
+ <copy todir="${build.test.classes.dir}">
1178
+ <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1179
+ </copy>
1180
+ </target>
1181
+ <target name="-post-compile-test">
1182
+ <!-- Empty placeholder for easier customization. -->
1183
+ <!-- You can override this target in the ../build.xml file. -->
1184
+ </target>
1185
+ <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1186
+ <target name="-pre-compile-test-single">
1187
+ <!-- Empty placeholder for easier customization. -->
1188
+ <!-- You can override this target in the ../build.xml file. -->
1189
+ </target>
1190
+ <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1191
+ <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1192
+ <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1193
+ <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}"/>
1194
+ <copy todir="${build.test.classes.dir}">
1195
+ <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1196
+ </copy>
1197
+ </target>
1198
+ <target name="-post-compile-test-single">
1199
+ <!-- Empty placeholder for easier customization. -->
1200
+ <!-- You can override this target in the ../build.xml file. -->
1201
+ </target>
1202
+ <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1203
+ <!--
1204
+ =======================
1205
+ TEST EXECUTION SECTION
1206
+ =======================
1207
+ -->
1208
+ <target depends="init" if="have.tests" name="-pre-test-run">
1209
+ <mkdir dir="${build.test.results.dir}"/>
1210
+ </target>
1211
+ <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1212
+ <j2seproject3:test testincludes="**/*Test.java"/>
1213
+ </target>
1214
+ <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1215
+ <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1216
+ </target>
1217
+ <target depends="init" if="have.tests" name="test-report"/>
1218
+ <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1219
+ <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1220
+ <target depends="init" if="have.tests" name="-pre-test-run-single">
1221
+ <mkdir dir="${build.test.results.dir}"/>
1222
+ </target>
1223
+ <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1224
+ <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1225
+ <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1226
+ </target>
1227
+ <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1228
+ <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1229
+ </target>
1230
+ <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"/>
1231
+ <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1232
+ <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1233
+ <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1234
+ <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1235
+ </target>
1236
+ <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1237
+ <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1238
+ </target>
1239
+ <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
1240
+ <!--
1241
+ =======================
1242
+ TEST DEBUGGING SECTION
1243
+ =======================
1244
+ -->
1245
+ <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
1246
+ <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1247
+ <j2seproject3:test-debug testClass="${test.class}"/>
1248
+ </target>
1249
+ <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test-method">
1250
+ <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1251
+ <j2seproject3:test-debug testClass="${test.class}" testMethod="${test.method}"/>
1252
+ </target>
1253
+ <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1254
+ <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1255
+ </target>
1256
+ <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1257
+ <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1258
+ <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1259
+ <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1260
+ </target>
1261
+ <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1262
+ <!--
1263
+ =========================
1264
+ APPLET EXECUTION SECTION
1265
+ =========================
1266
+ -->
1267
+ <target depends="init,compile-single" name="run-applet">
1268
+ <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1269
+ <j2seproject1:java classname="sun.applet.AppletViewer">
1270
+ <customize>
1271
+ <arg value="${applet.url}"/>
1272
+ </customize>
1273
+ </j2seproject1:java>
1274
+ </target>
1275
+ <!--
1276
+ =========================
1277
+ APPLET DEBUGGING SECTION
1278
+ =========================
1279
+ -->
1280
+ <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1281
+ <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1282
+ <j2seproject3:debug classname="sun.applet.AppletViewer">
1283
+ <customize>
1284
+ <arg value="${applet.url}"/>
1285
+ </customize>
1286
+ </j2seproject3:debug>
1287
+ </target>
1288
+ <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1289
+ <!--
1290
+ ===============
1291
+ CLEANUP SECTION
1292
+ ===============
1293
+ -->
1294
+ <target name="-deps-clean-init" unless="built-clean.properties">
1295
+ <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1296
+ <delete file="${built-clean.properties}" quiet="true"/>
1297
+ </target>
1298
+ <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1299
+ <echo level="warn" message="Cycle detected: lingscope was already built"/>
1300
+ </target>
1301
+ <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1302
+ <mkdir dir="${build.dir}"/>
1303
+ <touch file="${built-clean.properties}" verbose="false"/>
1304
+ <property file="${built-clean.properties}" prefix="already.built.clean."/>
1305
+ <antcall target="-warn-already-built-clean"/>
1306
+ <propertyfile file="${built-clean.properties}">
1307
+ <entry key="${basedir}" value=""/>
1308
+ </propertyfile>
1309
+ </target>
1310
+ <target depends="init" name="-do-clean">
1311
+ <delete dir="${build.dir}"/>
1312
+ <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1313
+ </target>
1314
+ <target name="-post-clean">
1315
+ <!-- Empty placeholder for easier customization. -->
1316
+ <!-- You can override this target in the ../build.xml file. -->
1317
+ </target>
1318
+ <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1319
+ <target name="-check-call-dep">
1320
+ <property file="${call.built.properties}" prefix="already.built."/>
1321
+ <condition property="should.call.dep">
1322
+ <and>
1323
+ <not>
1324
+ <isset property="already.built.${call.subproject}"/>
1325
+ </not>
1326
+ <available file="${call.script}"/>
1327
+ </and>
1328
+ </condition>
1329
+ </target>
1330
+ <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1331
+ <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1332
+ <propertyset>
1333
+ <propertyref prefix="transfer."/>
1334
+ <mapper from="transfer.*" to="*" type="glob"/>
1335
+ </propertyset>
1336
+ </ant>
1337
+ </target>
1338
+ </project>