summaryrefslogtreecommitdiff
path: root/jps
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2013-09-11 15:53:32 -0700
committerTor Norbye <tnorbye@google.com>2013-09-11 15:53:37 -0700
commita28de544d7f6bae0c637a1f8175ea613a976c52e (patch)
tree0b506efac9439f5a06d00e4aef4597c6d49bba3c /jps
parentc7f983b5dcd0499fc68aacaba043874648932b6b (diff)
downloadidea-a28de544d7f6bae0c637a1f8175ea613a976c52e.tar.gz
Snapshot b7cfcd5072e521a95c49cdd58405fa262075116e from idea/132.197 of git://git.jetbrains.org/idea/community.git
b7cfcd5: 2013-09-10 Alexey Kudravtsev - cleanup 98e9b07: 2013-09-10 Alexey Kudravtsev - optimisation: almost always one element set/map 06b1744: 2013-09-10 Alexey Kudravtsev - cleanup static final constants c2f6153: 2013-09-10 Alexey Kudravtsev - cleanup df9d3ff: 2013-09-10 Alexey Kudravtsev - IDEA-113331 c502feb: 2013-09-10 Alexey Kudravtsev - cleanup 4790327: 2013-09-09 Alexey Kudravtsev - cleanup 734f361: 2013-09-09 Alexey Kudravtsev - cleanup 4fa0b86: 2013-09-11 Dmitry Avdeev - action moved from platform to IDEA cade1ac: 2013-09-11 Bas Leijdekkers - don't make quickfix available when it does nothing e25c86f: 2013-09-11 nik - fixed copying items from 'Dependencies' panel (IDEA-108071) ba416aa: 2013-09-11 nik - IDEA-108213: ZipException on attempt to extract non-existent jar when building artifact e55712a: 2013-09-11 nik - show path to incorrect zip-file in error message (IDEA-113123), improved 68d131a: 2013-09-11 Vladislav.Soroka - Gradle: gradle build file can be used to resolve project info instead of gradle project dir 09cdde1: 2013-09-11 nik - JPS bootstrap build libs updated 6e4c9f0: 2013-09-10 nik - xdebugger: mark new properties appeared after step in debugger trees (WI-3066) 7aa6d26: 2013-09-10 nik - jps model: added method to process annotation roots from module and its dependencies de4cbc7: 2013-09-10 nik - IDEA-112009: Library selection dialog is too small ba3c923: 2013-09-10 Bas Leijdekkers - IDEA-93530 (bad code green: cannot assign a value to final variable) ae1a4ca: 2013-09-11 Vassiliy Kudryashov - Lense mode "internal" preview 296e85f: 2013-09-10 Dmitry Jemerov - Merge branch 'master' of git://github.com/asedunov/intellij-community into pull97 816cc8a: 2013-09-10 Bas Leijdekkers - IDEA-93515 (Good code red: variable might not have been initialized) f3a5bef: 2013-09-10 Gregory.Shrago - IDEA-113281 Ctrl+E for Console History shadows hotkey for Recent 00c7cc6: 2013-09-10 Anna Kozlova - EA-49751 - NPE: TestsOutputConsolePrinter.isRoot c848db6: 2013-09-10 Anna Kozlova - Poly Expressions 9f5e9d5: 2013-09-10 Vladimir Krivosheev - correct fix WEB-8151 8534bf1: 2013-09-10 peter - cache the default dfaVar type 2ee4c95: 2013-09-10 peter - merge DfaNotNullValue into DfaTypeValue 650794d: 2013-09-10 peter - some findusageability in dfa a75c57d: 2013-09-10 Alexey Sedunov - Refactor method search classes for better reusability 049514a: 2013-09-10 Vladislav.Soroka - IDEA-50450 Gradle code insight; tasks dsl resolving (incomplete) 8bb28e2: 2013-09-10 Denis Fokin - Cocoa does not like activities while transition in full screen is happening. This fix prevents simultaneous entering in the full screen mode. c837b30: 2013-09-10 Sergey Evdokimov - IDEA-109771 Incorrent Maven dependency resolution with war classes dependency eede608: 2013-09-10 Dmitry Avdeev - no icons in wizards a18ab7c: 2013-09-10 Dmitry Avdeev - cleanup 204e83b: 2013-09-10 Dmitry Avdeev - cleanup 33d61c5: 2013-09-10 Dmitry Avdeev - fixed layout in absence of icons 70a172a: 2013-09-10 Bas Leijdekkers - IDEA-91960 (Type parameter extends final class inspection warns on cases when can not be removed) f0e77a8: 2013-09-10 Rustam Vishnyakov - Allow to move a standard code style option to another group [CR-IC-2192] (cherry picked from commit 81c4f16) 3748154: 2013-09-10 Max Medvedev - IDEA-113299 Imports removed when writing javadoc 1a6ca29: 2013-09-10 Max Medvedev - IDEA-52424 language injection for GStrings and binary expressions 83237e6: 2013-07-07 Max Medvedev - IDEA-99638 completion in @Language("<caret>") 075e763: 2013-09-10 Aleksey Pivovarov - @NotNull 836e1af: 2013-09-10 Aleksey Pivovarov - Github: Ref -> AtomicReference 2c384d0: 2013-09-10 Aleksey Pivovarov - Github: remove duplication 1d09e47: 2013-09-10 Aleksey Pivovarov - Github: fetch a single branch for diff 3361c53: 2013-09-10 Aleksey Pivovarov - Github: use BorderFactory 0c1a982: 2013-09-10 Aleksey Pivovarov - Github: Nullable 403902b: 2013-09-07 Aleksey Pivovarov - Github: project-level settings 911bea9: 2013-09-10 Vladislav.Soroka - IDEA-113403 Gradle: disable wrapper verification by default and add check for default wrapper files 7434b38: 2013-09-10 Dmitry Avdeev - preferred focused component for wizards ecf3594: 2013-09-10 peter - static CachedValueManager.getCachedValue(PsiElement, CachedValueProvider) for less verbose cached value storage in psi user data 7d3f4f25: 2013-09-10 peter - some dfa simplifications not affecting tests 9d04224: 2013-09-09 peter - remove unused DelegatingInstructionVisitor dff5e27: 2013-09-10 Denis Fokin - Windows long paths issue has been fixed, the com.intellij.ui.win.Task was moved from RecentTasks class because of some problems with JNI invocations. Class path now is enclosed by double quotes. a1e5a9d: 2013-09-10 Ekaterina Tuzova - Merge remote-tracking branch 'origin/master' dcb78a4: 2013-09-10 Ekaterina Tuzova - Merge remote-tracking branch 'origin/master' 7840bbe: 2013-09-10 Anna Kozlova - deprecate to be able to be used in PsiClass etc 401e730: 2013-09-10 Ekaterina Tuzova - Merge remote-tracking branch 'origin/master' 2fb38cf: 2013-09-10 Anna Kozlova - Merge remote-tracking branch 'origin/master' 6bae9e1: 2013-09-10 Anna Kozlova - optimization a5ebbff: 2013-09-10 Anna Kozlova - cleanup lambda specifics a44e101: 2013-09-10 Anna Kozlova - EA-49734 - IAE: GenericsHighlightUtil.checkReferenceTypeArgumentList 73bc4cb: 2013-09-10 Vladimir Krivosheev - auth works now, continue "sync now" button f590909: 2013-09-10 Dmitry Jemerov - Merge branch 'master' of git://github.com/bashor/intellij-community into pull96 769fd94: 2013-09-10 Ekaterina Tuzova - fixed PY-10714 Reformat of string creates error da07f0e: 2013-09-10 Konstantin Kolosovsky - Merge branch 'svn1_8_new' 08f3baf: 2013-09-10 Konstantin Kolosovsky - IDEA-112179 PropertiesComponent refactored - duplication removed cdfb7ae: 2013-09-10 Konstantin Kolosovsky - IDEA-112179 Add/Edit/Delete svn properties 0a36021: 2013-09-10 nik - IDEA-112941: Throwable at com.intellij.openapi.roots.ui.configuration.classpath.ChangeLibraryLevelActionBase$1.run da397a1: 2013-09-10 peter - add a note on adverse groovy-hotswap effects on serialization (IDEA-61884) adf5bb7: 2013-09-10 nik - fixed building CE by 64-bit JDK (IDEA-112953) 1b396ef: 2013-09-10 nik - jps build: memory usage optimization 921a2f3: 2013-09-10 Konstantin Bulenkov - mem leak fixed 276c402: 2013-09-10 Dmitry Avdeev - new project wizard b07de54: 2013-09-10 nik - show path to incorrect zip-file in error message (IDEA-113123) ab4e6c6: 2013-09-10 nik - remote servers: allow to show additional logs for deployments in 'Servers View' - 2 eb65d57: 2013-09-09 nik - remote servers: allow to show additional logs for deployments in 'Servers View' faff6c2: 2013-07-07 Max Medvedev - duplicated test fe0569b: 2013-07-07 Max Medvedev - fix broken jar in test-data a840eb2: 2013-07-07 Max Medvedev - Groovy shell: support commands bb2ff42: 2013-07-07 Max Medvedev - Groovy Shell: support classes a7658c1: 2013-07-07 Max Medvedev - Complete imported classes in GroovyCodeFragment e53f7be: 2013-07-07 Max Medvedev - NN/Nu edd7e1e: 2013-07-07 Max Medvedev - support imports in GroovyShell f203ff2: 2013-07-07 Max Medvedev - support imports in GroovyShell d45e9cd: 2013-07-07 Max Medvedev - Groovy element factory: create import from statement 59f6256: 2013-07-07 Max Medvedev - IDEA-110179 fix control flow building for if-statement c9f45b6: 2013-07-07 Max Medvedev - fix GroovyIntentionsBundle 02bf9a6: 2013-07-07 Max Medvedev - IDEA-110178 'convert concatenation to GString' intention supports regexes 8f4f1ac: 2013-07-06 Max Medvedev - fix GroovyEnterHandler f5bb52d: 2013-07-06 Max Medvedev - IDEA-110178 upper letters 711f61e: 2013-07-06 Max Medvedev - IDEA-110178 'convert string literal to dollar-slashy string' intention 9462203: 2013-07-06 Max Medvedev - IDEA-110178 'convert string literal to regex' intention should convert dollar-slashy regexes c53a519: 2013-07-06 Max Medvedev - cleanup GrStringUtil 7134b63: 2013-07-06 Max Medvedev - IDEA-110178 'convert string literal to regex' intention 60b2f0a: 2013-07-06 Max Medvedev - IDEA-109053 Convert to single-line string fixed 1dea12c: 2013-09-10 Vladimir Krivosheev - fix fetch initial "sync now" button 3cc0794: 2013-09-09 Vladimir Krivosheev - add note about SkipDefaultValuesSerializationFilters 67ecfc0: 2013-09-09 Vladimir Krivosheev - ApplicationImpl — cleanup getExtensions ics — commit under progress 4cae157: 2013-09-09 Anna Kozlova - more specific: lambda extended initial fix (IDEA-113357) 0195034: 2013-09-09 Anna Kozlova - lambda -> method ref: reject unresolved lambdas f1b399b: 2013-09-09 Alexander Lobas - RenderServer 4252a50: 2013-09-09 Vladimir Krivosheev - SingleAlarm — should use ModalityState.NON_MODAL a5ca071: 2013-09-09 Konstantin Kolosovsky - IDEA-112179 "Set property" action implemented 2fa6ff6: 2013-09-09 Bas Leijdekkers - test for IDEA-53184 b57f5e1: 2013-09-09 Konstantin Bulenkov - WI-19949 Parent class methods aren't shown after second Command-F12 a2beba8: 2013-09-09 Zalim Bashorov - When we don't have any dependency(after f4a27e8) we should use ModificationTracker.NEVER_CHANGED instead empty array. 5154748: 2013-09-09 Konstantin Kolosovsky - IDEA-112181 Handling readonly files with or without "svn:needs-lock" property 55a5f4c: 2013-09-09 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' e6f6c94: 2013-09-09 Vladimir Krivosheev - WEB-6780 JS Debugger / Variables: "Jump to Source" not working: This action should be available only for object or functions. cd02963: 2013-09-09 Konstantin Kolosovsky - IDEA-112181 Lock data parsing for "svn info" command 66b72f8: 2013-09-09 Bas Leijdekkers - fix test and add test for IOE bb9b1f5: 2013-09-09 peter - IDEA-113391 Edit Method Contract intention for library methods b77731d: 2013-09-09 Konstantin Kolosovsky - IDEA-112181 Lock/Unlock actions implemented bc8cb84: 2013-09-09 Konstantin Kolosovsky - IDEA-94942 Utility methods to parse svn command line warnings b45114d: 2013-09-09 Dmitry Trofimov - Possibility to select Maya.app on Mac in add interpreter dialog. 631b361: 2013-09-09 Sergey Evdokimov - Completion of dependency should honor <dependencyManagement> section 0fcbc91: 2013-09-09 Roman Shevchenko - platform: correct formatting in the missing framework library validator 660731f: 2013-09-09 Bas Leijdekkers - use TypeConversionUtil.erasure() instead of reinventing the wheel badly 0fcec29: 2013-09-09 Bas Leijdekkers - prevent IOE on array initializer without array type (e.g. Map<String, String> m = {}) 5d70c64: 2013-09-09 Fedor Korotkov - Reverted 482c517 ea4b4f2: 2013-09-09 Vladimir Krivosheev - continue WEB-1171 javascript live console: execution enabled condition 54872b0: 2013-09-09 Anna Kozlova - accept interfaces as main classes for java 8 (IDEA-113340) c9fc494: 2013-09-09 Anna Kozlova - pull up: ensure that default won't be inserted for ll < 1.8 (IDEA-113323) c51363b: 2013-09-09 Vladimir Krivosheev - we should not call execute action if completion variant not focused 7c5f486: 2013-09-09 Dmitry Trofimov - Disposable parent can be null. 1e9a0d8: 2013-09-09 nik - xdebugger: simplified calling old deprecated method & javadocs added 2e3c259: 2013-09-09 nik - notnullification 0aa3d9d: 2013-09-09 Vladimir Krivosheev - continue WEB-1171 javascript live console: add history actions ac12238: 2013-09-09 Vladimir Krivosheev - add Copyright c7d7080: 2013-09-08 Alex Ruiz - Minor changes to NewProjectCheckoutListener to reuse its code. 8d29e4f: 2013-09-09 Sergey Simonchik - XDebugProcess method rename: createLayouter -> createTabLayouter f58251b: 2013-09-09 Sergey Simonchik - XDebugProcess.registerAdditionalContent method restored to keep compatibility with IDEA 12 API 286cdc3: 2013-09-09 Anna Kozlova - anonym -> lambda: unique param names (IDEA-113338) 238e311: 2013-09-09 Vladimir Krivosheev - prefer to use interface LanguageConsoleView instead of impl class d75838a: 2013-09-06 Vladimir Krivosheev - continue WEB-1171 javascript live console — works now, but UI is ugly 9f054b0: 2013-09-09 Sergey Simonchik - XDebug layout API improvement: XDebugProcess.registerAdditionalContent moved to XDebugLayouter 7cc0d20: 2013-09-08 Vladimir Krivosheev - schedule commit&push 4d9e998: 2013-09-08 Vladimir Krivosheev - move SingleAlarm to platform-impl 4d840cf: 2013-09-08 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' 134a7fa: 2013-09-08 Fedor Korotkov - WEB-8731 HTML parser breaks with unquoted complex attributes 482c517: 2013-09-08 Fedor Korotkov - WEB-8397 Incorrect "element is not allowed here" inspection 3bbc3f7: 2013-09-08 Dmitry Trofimov - Implement get variable for console variables view. 12e32a8: 2013-09-08 Bas Leijdekkers - IDEA-96419 ("Externalizable class without public no-arg constructor" inspection options) 2d25b3b: 2013-09-08 Bas Leijdekkers - DRY 8941cf8: 2013-09-08 Bas Leijdekkers - IDEA-113298 (replace assertTrue with assertFalse removes message) 72c972f: 2013-09-07 Max Medvedev - auto inject RegExp lang to reg-exp operator argeuments e7fa284: 2013-09-07 Max Medvedev - IDEA-113346 False negative in groovy withStream closure 0b795be: 2013-09-07 Bas Leijdekkers - IDEA-85224 (Inspection "non thread-safe static field access" gives false +ve for static initializers) 28a1e72: 2013-09-07 Bas Leijdekkers - cleanup 8bc5fbf: 2013-06-12 Max Medvedev - IDEA-111780 Extract method from static closure should create static method bc4b2d7: 2013-06-12 Max Medvedev - IDEA-112878 Groovy code completion doesn't obey 'before parentheses -> method parentheses' settings. 1afc036: 2013-09-07 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' 80cd221: 2013-09-07 Aleksey Pivovarov - Github: simplify 80a15fc: 2013-09-07 Aleksey Pivovarov - Github: simplify mapping user -> fork repository ef91648: 2013-09-07 Aleksey Pivovarov - Github: fix remote branch ref 307f921: 2013-09-07 Bas Leijdekkers - IDEA-53184 (False positive unused field inspection for serialVersionUID fields) c1545b5: 2013-09-06 Vassiliy Kudryashov - Lense mode "internal" preview 5a2c378: 2013-09-06 Roman Shevchenko - platform: correct formatting in downloadable library version chooser 4ffa7ea: 2013-09-06 Konstantin Kolosovsky - IDEA-112802 Fixed parameters for "checkout completed" event e8a4550: 2013-09-06 peter - there are no constructor field initializers in compiled psi cee022e: 2013-09-06 peter - IDEA-113013 When insert selected variant is enabled the "generated" code comply with code style 762a0ca: 2013-09-06 peter - empty for loop condition means "true" (IDEA-113242) 75c1cd6: 2013-09-06 peter - IDEA-113149 Constructor parameters completion is not available in case of classes with generics 243adf0: 2013-09-06 peter - IDEA-113028 Complete statement doesn't complete class declaration 9dfa286: 2013-09-06 Anna Kozlova - Merge remote-tracking branch 'origin/master' d901cc2: 2013-09-06 Anna Kozlova - drop old external annotations format a0d17e6: 2013-09-06 nik - xdebugger: restored custom presentation for keywords and numbers, changed values are highlighted by coloring their names 65dc74c: 2013-09-06 Sergey Evdokimov - Refactoring: use PsiImplUtil.isLeafElementOfType() instead of org.jetbrains.plugins.groovy.lang.psi.util.PsiUtil.isLeafElementOfType() 5d1dddc: 2013-09-06 peter - fail-fast DfaMemoryStateImpl.equals 59734e3: 2013-09-06 peter - calculate constructor initialization for all fields at once, and cache (needed for dfa and nullable-stuff inspections) 2bad29c: 2013-09-06 peter - 2x faster implicit field nullability detection 1952eee: 2013-09-06 peter - IDEA-112567 Don't show any completion variants after method reference and dot 6b3d77c: 2013-09-06 peter - IDEA-112968 Show "Value is always" warning only for null/true/false ae94260: 2013-09-06 peter - revert meaningless: use actual (maybe unsaved) psi text for find usages (EA-49575) 4275fcb: 2013-09-06 Anna Kozlova - drop old external annotations format d34fcc5: 2013-09-06 Anna Kozlova - move: take into account usages which won't be changed textually but could affect possible conflicts (IDEA-113280) f1b0f11: 2013-09-06 Sergey Simonchik - xdebug api improvement 1a1eacf: 2013-09-06 Konstantin Kolosovsky - IDEA-112802 Initial checkout implementation (with svn command line client) b7e7f12: 2013-09-06 Sergey Evdokimov - Bug fix: hint "(, )" is shown beside any goal in maven tool window 953771d: 2013-09-06 Sergey Evdokimov - Run completion automatically after inserting of <dependency> 14e7fec: 2013-09-06 Nadya Zabrodina - fix for windows (template need not to be quoted because GeneralCommandline is smart) f1a9f68: 2013-09-06 Bas Leijdekkers - IDEA-89557 (Inspection `RawUseOfParameterizedType` is redundant on inspection of parameterized type object arrays with the trailing `class` keyword) 80de1ec: 2013-09-06 Bas Leijdekkers - clarify that the "Raw use of parameterized type" inspection mirrors javac's rawtypes warning (IDEA-99892) 6942d1c: 2013-09-06 Bas Leijdekkers - IDEA-99829 (Problem with inspection "Raw use of parameterized class" option "Ignore where a type parameter would not compile.) b5c1f0e: 2013-09-06 nik - set default dependency scope for framework libraries added to a module 9683169: 2013-09-06 Eugene Zhuravlev - not-null + manager-thread assertions 86f4be9: 2013-09-06 Anna Kozlova - plugins: do not warn about disabled optional dependencies fb5e6e7: 2013-09-06 Anna Kozlova - plugins downloading: enable dependencies: make suggester answer Yes/No ac38433: 2013-09-06 Anna Kozlova - optimization: retrieve PsiElement when problem occurs only 9cd0458: 2013-09-06 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' 683ece5: 2013-09-06 nik - xdebugger: 'jump to type source' action added 1448c7d: 2013-09-06 nik - cleanup 4c471d2: 2013-09-06 Vladislav.Soroka - IDEA-102653 tooltip with description added to external project task tree 499cd73: 2013-09-06 Bas Leijdekkers - no generic array creation 6a2d6f4: 2013-09-06 Konstantin Bulenkov - the fix of IDEA-26026 doesn't make sense nowadays. Dialog should be modal IDEA-105611 Invalid focus when invoking find in files 13d56b2: 2013-09-06 Konstantin Kolosovsky - IDEA-94942 Support nullable handler for update commands 9d07f2e: 2013-09-06 Konstantin Kolosovsky - IDEA-94942 Refactored merge, update implementation to use common command listener 8bd8e93: 2013-09-06 Denis Fokin - IDEA-113303 Headless Exception when using inspect.sh on OS X 599c49b: 2013-09-06 Vladimir Krivosheev - init WEB-1171 javascript live console 04b3c6b: 2013-09-06 Konstantin Kolosovsky - IDEA-94942 Force SVNKit implementation for 1.6 working copies bb8daac: 2013-09-06 Vladimir Krivosheev - investigate: java.lang.IllegalArgumentException: void return types for handler methods not supported f9f74a5: 2013-09-06 Vladimir Krivosheev - don't hide original exception: java.lang.Exception: java.lang.IllegalStateException: AES/CBC/NoPadding is not available 8df26d7: 2013-09-06 Mikhail Golubev - Merge remote-tracking branch 'origin/master' 87b1100: 2013-09-06 nik - xdebugger api: support grouping values in debugger trees c1e214a: 2013-09-06 Vladislav.Soroka - IDEA-50450 Gradle code insight f63250d: 2013-09-04 Alex Ruiz - Disabled "Use embedded Gradle" option for importing project. 517c614: 2013-09-06 Konstantin Bulenkov - remove refs to Project asap 636ac6d: 2013-09-06 Konstantin Bulenkov - IDEA-99897 When "block caret" mode is on, after deleting a character at the end of a line, the character deleted appears in inverse 021d4a5: 2013-06-12 Max Medvedev - Groovy formatter: blank lines in declarations 706feca: 2013-06-12 Max Medvedev - IDEA-113124 Groovy files in the navigation bar 81ba9a5: 2013-09-05 Vladimir Krivosheev - cleanup 198c147: 2013-06-12 Max Medvedev - IDEA-107520 Groovy Shell: support commands in groovy shell cd1aa72: 2013-06-12 Max Medvedev - IDEA-69673 Generate toString() template Groovy GString style should be added 5e1454a: 2013-06-12 Max Medvedev - generateToString: shorten class references not only for java files 2509702: 2013-06-12 Max Medvedev - don't manually replace toString() if it exists; generate the new one in the appropriate place instead 2e72f08: 2013-06-09 Max Medvedev - Groovy: smart complete type definition body c8ab923: 2013-06-09 Max Medvedev - Groovy: In-place introduce parameter: delegate 98ae7ed: 2013-09-04 Bas Leijdekkers - Fix all known "Field may be final" inspection problems 2 (IDEA-75321, IDEA-80439, IDEA-84561, IDEA-84614, IDEA-87373,IDEA-89711, IDEA-91969, IDEA-111396) 24184340: 2013-09-05 peter - update FixAllQuickfixTest test data, so that it identifies the quick fix unambiguously 082a0f9: 2013-09-05 Konstantin Bulenkov - make search everywhere available in current context 4eaae16: 2013-09-05 Konstantin Bulenkov - remove dead code dde304f: 2013-09-05 Konstantin Bulenkov - refactor to make autoSelectOnMouseMove available in ListUtil 150d337: 2013-09-05 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' 1790f99: 2013-09-05 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' 981c3f6: 2013-09-05 Sergey Evdokimov - Rename class 06eb88d: 2013-09-05 Sergey Evdokimov - Add test for inserting maven dependency by smart completion dc54349: 2013-09-05 Konstantin Kolosovsky - Merge branch 'svn1_8_new' a742e91: 2013-09-05 Dmitry Trofimov - Take correct setting for console background color (PY-10737). c55ba74: 2013-09-05 Nadya Zabrodina - ShellCommandLine changed to GeneralCommandline to provide shell variables to ide bb3ff5f: 2013-09-05 Sergey Evdokimov - IDEA-112939 Smart dependency completion for pom.xml d1daa65: 2013-09-05 Anna Kozlova - fix ranges 5ac8d00: 2013-09-05 Anna Kozlova - accept narrowing conversion from byte[] to T< extends Serializable> (IDEA-113225) 5e7db4f: 2013-09-05 Konstantin Kolosovsky - IDEA-112060 Notification added when working copy format and client version do not correspond to each other 804db7e: 2013-09-05 Konstantin Kolosovsky - IDEA-112060 Force validate executable if project is svn 1.8 working copy cdc6f6b: 2013-09-05 Konstantin Kolosovsky - IDEA-112071 Refresh svn working copies/statuses if "use command line" option or path to executable changed 613144f: 2013-09-05 Konstantin Kolosovsky - Make equal SvnConfigurable and SvnVcs display names (to "show settings" work correctly) 002eadb: 2013-09-05 Serega Vasiliev - javaee libs,project structure, etc. 559ab96: 2013-09-05 peter - no matter if there are other variables having that constant value, it's still constant bec4757: 2013-09-04 Mikhail Golubev - * Add error message when template variable used isn't defined * Template variables values are urlencoded during their substitution in URLs c01b85b: 2013-09-04 Mikhail Golubev - Add sprint.ly integration 68d131b: 2013-09-05 peter - use actual (maybe unsaved) psi text for find usages (EA-49575) b138d05: 2013-09-05 peter - rely less on mutable state in ChooseByNameBase.getNames (IDEA-112779) f0dc4b1: 2013-09-05 Anna Kozlova - optimization: skip external usages processing when scope already contains everything bfb94e0: 2013-09-05 Alexey Kudravtsev - renamed module editor-ui-impl to editor-ui-ex d711697: 2013-09-05 peter - really focus existing project frame when opening already opened project (related to IDEA-113158) 57d5690: 2013-09-05 Anna Kozlova - logging for EA-49553 - assert: SingleInspectionProfilePanel.copyUsedSeveritiesIfUndefined ed2cc9b: 2013-09-05 Anna Kozlova - logging for EA-49541 - assert: FileReference.rename 5a3cc7c: 2013-09-05 Roman Shevchenko - test framework: commit or dispose model 0735047: 2013-09-05 Anna Kozlova - scopes: escape dot as it is not a separator in file pattern (IDEA-113148) 6ae3bf7: 2013-09-05 Anna Kozlova - inference graph nodes: merge value/dependencies f02d237: 2013-09-05 Konstantin Bulenkov - fix test data 830b9c1: 2013-09-05 Konstantin Bulenkov - better english 400062d: 2013-09-05 Sergey Evdokimov - Make GrailsRunConfiguration singleton by default. 8caf8af: 2013-09-05 Vladimir Krivosheev - add javadoc 32394f0: 2013-09-05 Vladimir Krivosheev - WEB-7511 "Evaluate Expression" window does not build correct path to currently selected object node d59afd6: 2013-09-05 nik - xdebugger: removed duplicated 'Collecting data' text value node 32d3038: 2013-09-05 nik - unused class deleted 42255de: 2013-09-05 nik - xdebugger api streamlined: reworked the way node presentation is customized 36d908c: 2013-09-05 Sergey Evdokimov - IDEA-113188 Go to related files works incorrectly for Model and Controller in Groovy 55a5b28: 2013-09-05 Dmitry Avdeev - final methods in task api cd0f640: 2013-09-04 Dmitry Avdeev - running tests without ModuleTypeManager a41a8dc: 2013-09-05 Svetlana.Zemlyanskaya - Arrangement: make tokens aware of their type (author=Roman.Shein) 20bfe63: 2013-06-09 Max Medvedev - IDEA-71176 Encapsulate Java fields should update Groovy usages 30889b4: 2013-06-08 Max Medvedev - pluggable EncapsulateFields refactoring a3ed6bd: 2013-06-08 Max Medvedev - refactor EncapsulateFieldProcessor b7103d5: 2013-09-04 Max Medvedev - IDEA-113176 Groovy: place caret inside parentheses when compliting constructors b44e415: 2013-09-04 Vladimir Krivosheev - NotNull, StreamProvider.listSubFiles accept roaming type 89f6078: 2013-09-04 Vladimir Krivosheev - init WEB-7511 "Evaluate Expression" window does not build correct path to currently selected object node Now only hint show correct evaluated expression faaea11: 2013-09-04 Vladimir Krivosheev - remove deprecated method 98d4f5e: 2013-09-04 Vladimir Krivosheev - cleanup, remove deprecated method f4a27e8: 2013-09-04 peter - CachedValueProvider.Result: force non-empty list of not-null dependencies 19df6f4: 2013-09-04 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' b12d474: 2013-09-04 Andrey Vlasovskikh - Merge branch 'python-fixes' 824377b: 2013-09-04 Andrey Vlasovskikh - Use new serializer for Python shadowing inspection 9bc2733: 2013-09-04 peter - single-pass control flow building 257d23a: 2013-09-04 peter - IDEA-112474 Expression might evaluate to null and not @Nullable annotated inspection is not aware of @Contract e586777: 2013-09-04 peter - a more descriptive DupInstruction.toString 9c9e366: 2013-09-04 peter - dfa: pop all the contract-unchecked arguments from stack (IDEA-112500) 6c2ead1: 2013-09-04 jgindin - Branch view in RepositoryTab 616f50f: 2013-09-04 Konstantin Kolosovsky - Merge branch 'svn1_8_new' 631a6ae: 2013-09-04 Konstantin Bulenkov - IDEA-113217 Check spelling and grammar in Community Bundles 45009eb: 2013-09-04 Konstantin Bulenkov - IDEA-113216 Darcula: Equal sign is too bright in properties files 711b2f5: 2013-09-04 Konstantin Kolosovsky - IDEA-94942 Force separate SVNKit client for each info request (to prevent multithreaded issues) 9ea7a68: 2013-09-04 Konstantin Bulenkov - IDEA-113215 GSP looks weird under Darcula 76f2e32: 2013-09-04 Konstantin Kolosovsky - IDEA-94942 Removed unused JavaHL code 3a8a697: 2013-09-04 Vladimir Krivosheev - fix possible NPE 1dd1635: 2013-09-04 Vladimir Krivosheev - We must not use variable if it is not yet set — we must set channel in "init" handler, but not in "connected" handler. Issue is actual under windows (I don't know why). 4860142: 2013-09-04 Mikhail Golubev - Change TaskBuilder constructor: repository field is mandatory ccb5502: 2013-09-04 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' d43513f: 2013-09-03 Dmitry Trofimov - Variable view in Python Console. dd251c7: 2013-09-03 Dmitry Trofimov - Merge remote-tracking branch 'origin/master' dc83844: 2013-09-03 Dmitry Trofimov - Prevent CCE. Change-Id: I9ce8f336e5ab08b9a26d806a3faa8db7e0d9813f
Diffstat (limited to 'jps')
-rw-r--r--jps/jps-builders/src/org/jetbrains/jps/builders/impl/BuildRootIndexImpl.java3
-rw-r--r--jps/jps-builders/src/org/jetbrains/jps/incremental/artifacts/instructions/JarBasedArtifactRootDescriptor.java27
-rw-r--r--jps/jps-builders/testSrc/org/jetbrains/jps/incremental/artifacts/ArtifactBuilderTest.java12
-rw-r--r--jps/model-api/src/org/jetbrains/jps/model/java/JpsAnnotationRootType.java3
-rw-r--r--jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaDependenciesEnumerator.java7
-rw-r--r--jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaModuleExtension.java13
-rw-r--r--jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesEnumeratorImpl.java6
-rw-r--r--jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesRootsEnumeratorImpl.java12
-rw-r--r--jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaModuleExtensionImpl.java2
-rw-r--r--jps/model-impl/testSrc/org/jetbrains/jps/model/JpsDependenciesEnumeratorTest.java118
10 files changed, 131 insertions, 72 deletions
diff --git a/jps/jps-builders/src/org/jetbrains/jps/builders/impl/BuildRootIndexImpl.java b/jps/jps-builders/src/org/jetbrains/jps/builders/impl/BuildRootIndexImpl.java
index 262f0e433def..078e1fbe331b 100644
--- a/jps/jps-builders/src/org/jetbrains/jps/builders/impl/BuildRootIndexImpl.java
+++ b/jps/jps-builders/src/org/jetbrains/jps/builders/impl/BuildRootIndexImpl.java
@@ -84,6 +84,9 @@ public class BuildRootIndexImpl implements BuildRootIndex {
for (BuildRootDescriptor descriptor : descriptors) {
registerDescriptor(descriptor);
}
+ if (descriptors instanceof ArrayList<?>) {
+ ((ArrayList)descriptors).trimToSize();
+ }
myRootsByTarget.put(target, descriptors);
}
diff --git a/jps/jps-builders/src/org/jetbrains/jps/incremental/artifacts/instructions/JarBasedArtifactRootDescriptor.java b/jps/jps-builders/src/org/jetbrains/jps/incremental/artifacts/instructions/JarBasedArtifactRootDescriptor.java
index 8485d28901c2..8c3f762238a0 100644
--- a/jps/jps-builders/src/org/jetbrains/jps/incremental/artifacts/instructions/JarBasedArtifactRootDescriptor.java
+++ b/jps/jps-builders/src/org/jetbrains/jps/incremental/artifacts/instructions/JarBasedArtifactRootDescriptor.java
@@ -50,27 +50,34 @@ public class JarBasedArtifactRootDescriptor extends ArtifactRootDescriptor {
}
public void processEntries(EntryProcessor processor) throws IOException {
+ if (!myRoot.isFile()) return;
+
String prefix = StringUtil.trimStart(myPathInJar, "/");
if (!StringUtil.endsWithChar(prefix, '/')) prefix += "/";
if (prefix.equals("/")) {
prefix = "";
}
- ZipFile zipFile = new ZipFile(myRoot);
try {
- final Enumeration<? extends ZipEntry> entries = zipFile.entries();
+ ZipFile zipFile = new ZipFile(myRoot);
+ try {
+ final Enumeration<? extends ZipEntry> entries = zipFile.entries();
- while (entries.hasMoreElements()) {
- ZipEntry entry = entries.nextElement();
- final String name = entry.getName();
- if (name.startsWith(prefix)) {
- String relativePath = name.substring(prefix.length());
- processor.process(entry.isDirectory() ? null : zipFile.getInputStream(entry), relativePath, entry);
+ while (entries.hasMoreElements()) {
+ ZipEntry entry = entries.nextElement();
+ final String name = entry.getName();
+ if (name.startsWith(prefix)) {
+ String relativePath = name.substring(prefix.length());
+ processor.process(entry.isDirectory() ? null : zipFile.getInputStream(entry), relativePath, entry);
+ }
}
}
+ finally {
+ zipFile.close();
+ }
}
- finally {
- zipFile.close();
+ catch (IOException e) {
+ throw new IOException("Error occurred during processing zip file " + myRoot + ": " + e.getMessage(), e);
}
}
diff --git a/jps/jps-builders/testSrc/org/jetbrains/jps/incremental/artifacts/ArtifactBuilderTest.java b/jps/jps-builders/testSrc/org/jetbrains/jps/incremental/artifacts/ArtifactBuilderTest.java
index 9179999c9000..10ea2438517c 100644
--- a/jps/jps-builders/testSrc/org/jetbrains/jps/incremental/artifacts/ArtifactBuilderTest.java
+++ b/jps/jps-builders/testSrc/org/jetbrains/jps/incremental/artifacts/ArtifactBuilderTest.java
@@ -405,6 +405,18 @@ public class ArtifactBuilderTest extends ArtifactBuilderTestCase {
assertEmptyOutput(a);
}
+ public void testExtractNonExistentJarFile() {
+ JpsArtifact a = addArtifact(root().extractedDir("this-file-does-not-exist.jar", "/"));
+ buildAll();
+ assertEmptyOutput(a);
+ }
+
+ public void testRepackNonExistentJarFile() {
+ JpsArtifact a = addArtifact(archive("a.jar").extractedDir("this-file-does-not-exist.jar", "/").fileCopy(createFile("a.txt")));
+ buildAll();
+ assertOutput(a, fs().archive("a.jar").file("a.txt"));
+ }
+
private static void createFileInArtifactOutput(JpsArtifact a, final String fileName) throws IOException {
assertTrue(new File(a.getOutputPath(), fileName).createNewFile());
}
diff --git a/jps/model-api/src/org/jetbrains/jps/model/java/JpsAnnotationRootType.java b/jps/model-api/src/org/jetbrains/jps/model/java/JpsAnnotationRootType.java
index 5253d7ccf28d..b62cc2cbf04a 100644
--- a/jps/model-api/src/org/jetbrains/jps/model/java/JpsAnnotationRootType.java
+++ b/jps/model-api/src/org/jetbrains/jps/model/java/JpsAnnotationRootType.java
@@ -22,4 +22,7 @@ import org.jetbrains.jps.model.library.JpsOrderRootType;
*/
public class JpsAnnotationRootType extends JpsOrderRootType {
public static final JpsAnnotationRootType INSTANCE = new JpsAnnotationRootType();
+
+ private JpsAnnotationRootType() {
+ }
}
diff --git a/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaDependenciesEnumerator.java b/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaDependenciesEnumerator.java
index 82cec24868b2..20d78bbd74e3 100644
--- a/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaDependenciesEnumerator.java
+++ b/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaDependenciesEnumerator.java
@@ -109,4 +109,11 @@ public interface JpsJavaDependenciesEnumerator extends JpsDependenciesEnumerator
*/
@NotNull
JpsJavaDependenciesRootsEnumerator sources();
+
+ /**
+ *
+ * @return enumerator for processing annotation roots of the dependencies
+ */
+ @NotNull
+ JpsJavaDependenciesRootsEnumerator annotations();
}
diff --git a/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaModuleExtension.java b/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaModuleExtension.java
index 725063f68ddb..94787454306e 100644
--- a/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaModuleExtension.java
+++ b/jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaModuleExtension.java
@@ -15,6 +15,8 @@
*/
package org.jetbrains.jps.model.java;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
import org.jetbrains.jps.model.JpsElement;
import org.jetbrains.jps.model.JpsUrlList;
@@ -22,21 +24,26 @@ import org.jetbrains.jps.model.JpsUrlList;
* @author nik
*/
public interface JpsJavaModuleExtension extends JpsElement {
+ @NotNull
JpsUrlList getJavadocRoots();
+ @NotNull
JpsUrlList getAnnotationRoots();
+ @Nullable
String getOutputUrl();
- void setOutputUrl(String outputUrl);
+ void setOutputUrl(@Nullable String outputUrl);
+ @Nullable
String getTestOutputUrl();
- void setTestOutputUrl(String testOutputUrl);
+ void setTestOutputUrl(@Nullable String testOutputUrl);
+ @Nullable
LanguageLevel getLanguageLevel();
- void setLanguageLevel(LanguageLevel languageLevel);
+ void setLanguageLevel(@Nullable LanguageLevel languageLevel);
boolean isInheritOutput();
diff --git a/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesEnumeratorImpl.java b/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesEnumeratorImpl.java
index c3ee73665f26..9f172a9881ff 100644
--- a/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesEnumeratorImpl.java
+++ b/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesEnumeratorImpl.java
@@ -103,6 +103,12 @@ public class JpsJavaDependenciesEnumeratorImpl extends JpsDependenciesEnumerator
return new JpsJavaDependenciesRootsEnumeratorImpl(this, JpsOrderRootType.SOURCES);
}
+ @NotNull
+ @Override
+ public JpsJavaDependenciesRootsEnumerator annotations() {
+ return new JpsJavaDependenciesRootsEnumeratorImpl(this, JpsAnnotationRootType.INSTANCE);
+ }
+
@Override
protected JpsJavaDependenciesEnumeratorImpl self() {
return this;
diff --git a/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesRootsEnumeratorImpl.java b/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesRootsEnumeratorImpl.java
index 30b93e7856ad..b87a5cfa7730 100644
--- a/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesRootsEnumeratorImpl.java
+++ b/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaDependenciesRootsEnumeratorImpl.java
@@ -16,9 +16,7 @@
package org.jetbrains.jps.model.java.impl;
import com.intellij.util.Consumer;
-import org.jetbrains.jps.model.java.JavaSourceRootType;
-import org.jetbrains.jps.model.java.JpsJavaDependenciesRootsEnumerator;
-import org.jetbrains.jps.model.java.JpsJavaExtensionService;
+import org.jetbrains.jps.model.java.*;
import org.jetbrains.jps.model.library.JpsOrderRootType;
import org.jetbrains.jps.model.module.*;
import org.jetbrains.jps.model.module.impl.JpsDependenciesRootsEnumeratorBase;
@@ -83,6 +81,14 @@ public class JpsJavaDependenciesRootsEnumeratorImpl extends JpsDependenciesRoots
}
}
}
+ else if (myRootType == JpsAnnotationRootType.INSTANCE) {
+ JpsJavaModuleExtension extension = JpsJavaExtensionService.getInstance().getModuleExtension(module);
+ if (extension != null) {
+ for (String url : extension.getAnnotationRoots().getUrls()) {
+ urlConsumer.consume(url);
+ }
+ }
+ }
return true;
}
}
diff --git a/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaModuleExtensionImpl.java b/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaModuleExtensionImpl.java
index 9852e91e60b2..dc5d716a6aac 100644
--- a/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaModuleExtensionImpl.java
+++ b/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JpsJavaModuleExtensionImpl.java
@@ -53,11 +53,13 @@ public class JpsJavaModuleExtensionImpl extends JpsCompositeElementBase<JpsJavaM
return new JpsJavaModuleExtensionImpl(this);
}
+ @NotNull
@Override
public JpsUrlList getAnnotationRoots() {
return myContainer.getChild(ANNOTATIONS_ROOTS_ROLE);
}
+ @NotNull
@Override
public JpsUrlList getJavadocRoots() {
return myContainer.getChild(JAVADOC_ROOTS_ROLE);
diff --git a/jps/model-impl/testSrc/org/jetbrains/jps/model/JpsDependenciesEnumeratorTest.java b/jps/model-impl/testSrc/org/jetbrains/jps/model/JpsDependenciesEnumeratorTest.java
index 95f3a63a6035..a6397798400a 100644
--- a/jps/model-impl/testSrc/org/jetbrains/jps/model/JpsDependenciesEnumeratorTest.java
+++ b/jps/model-impl/testSrc/org/jetbrains/jps/model/JpsDependenciesEnumeratorTest.java
@@ -31,33 +31,35 @@ import java.io.File;
import java.io.IOException;
import java.util.Arrays;
+import static org.jetbrains.jps.model.java.JpsJavaExtensionService.dependencies;
+
/**
* @author nik
*/
public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
- private JpsTypedLibrary<JpsSdk<JpsDummyElement>> myJdk;
private JpsModule myModule;
@Override
public void setUp() throws Exception {
super.setUp();
File home = PathManagerEx.findFileUnderCommunityHome("java/mockJDK-1.7");
- myJdk = myModel.getGlobal().addSdk("mockJDK-1.7", home.getAbsolutePath(), "1.7", JpsJavaSdkType.INSTANCE);
- myJdk.addRoot(getRtJar(), JpsOrderRootType.COMPILED);
+ JpsTypedLibrary<JpsSdk<JpsDummyElement>> jdk =
+ myModel.getGlobal().addSdk("mockJDK-1.7", home.getAbsolutePath(), "1.7", JpsJavaSdkType.INSTANCE);
+ jdk.addRoot(getRtJar(), JpsOrderRootType.COMPILED);
myModule = addModule();
- myModule.getSdkReferencesTable().setSdkReference(JpsJavaSdkType.INSTANCE, myJdk.getProperties().createReference());
+ myModule.getSdkReferencesTable().setSdkReference(JpsJavaSdkType.INSTANCE, jdk.getProperties().createReference());
myModule.getDependenciesList().addSdkDependency(JpsJavaSdkType.INSTANCE);
}
public void testLibrary() throws Exception {
JpsModuleRootModificationUtil.addDependency(myModule, createJDomLibrary());
- assertClassRoots(orderEntries(myModule), getRtJar(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().productionOnly().runtimeOnly(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutLibraries(), getRtJar());
- assertSourceRoots(orderEntries(myModule), getJDomSources());
+ assertClassRoots(dependencies(myModule), getRtJar(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().productionOnly().runtimeOnly(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutLibraries(), getRtJar());
+ assertSourceRoots(dependencies(myModule), getJDomSources());
}
private String getJDomSources() {
@@ -72,11 +74,11 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
return getJarUrlFromLibDir("asm.jar");
}
- private String getJarUrlFromLibDir(final String relativePath) {
+ private static String getJarUrlFromLibDir(final String relativePath) {
return JpsPathUtil.getLibraryRootUrl(PathManager.findFileInLibDirectory(relativePath));
}
- private String getRtJar() {
+ private static String getRtJar() {
return JpsPathUtil.getLibraryRootUrl(PathManagerEx.findFileUnderCommunityHome("java/mockJDK-1.7/jre/lib/rt.jar"));
}
@@ -99,13 +101,13 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
final String output = setModuleOutput(myModule, false);
final String testOutput = setModuleOutput(myModule, true);
- assertClassRoots(orderEntries(myModule).withoutSdk(), testOutput, output);
- assertClassRoots(orderEntries(myModule).withoutSdk().productionOnly(), output);
- assertSourceRoots(orderEntries(myModule), srcRoot, testRoot);
- assertSourceRoots(orderEntries(myModule).productionOnly(), srcRoot);
+ assertClassRoots(dependencies(myModule).withoutSdk(), testOutput, output);
+ assertClassRoots(dependencies(myModule).withoutSdk().productionOnly(), output);
+ assertSourceRoots(dependencies(myModule), srcRoot, testRoot);
+ assertSourceRoots(dependencies(myModule).productionOnly(), srcRoot);
- assertEnumeratorRoots(orderEntries(myModule).withoutSdk().classes().withoutSelfModuleOutput(), output);
- assertEnumeratorRoots(orderEntries(myModule).withoutSdk().productionOnly().classes().withoutSelfModuleOutput());
+ assertEnumeratorRoots(dependencies(myModule).withoutSdk().classes().withoutSelfModuleOutput(), output);
+ assertEnumeratorRoots(dependencies(myModule).withoutSdk().productionOnly().classes().withoutSelfModuleOutput());
}
public void testLibraryScope() throws Exception {
@@ -113,9 +115,9 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
getJavaService().getOrCreateDependencyExtension(dependency).setScope(JpsJavaDependencyScope.RUNTIME);
JpsModuleRootModificationUtil.addDependency(myModule, createJDomLibrary(), JpsJavaDependencyScope.RUNTIME, false);
- assertClassRoots(orderEntries(myModule).withoutSdk(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().exportedOnly());
- assertClassRoots(orderEntries(myModule).withoutSdk().compileOnly());
+ assertClassRoots(dependencies(myModule).withoutSdk(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().exportedOnly());
+ assertClassRoots(dependencies(myModule).withoutSdk().compileOnly());
}
public void testModuleDependency() throws Exception {
@@ -132,27 +134,27 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
final String output = setModuleOutput(myModule, false);
final String testOutput = setModuleOutput(myModule, true);
- assertClassRoots(orderEntries(myModule).withoutSdk(), testOutput, output, depTestOutput, depOutput);
- assertClassRoots(orderEntries(myModule).withoutSdk().recursively(), testOutput, output, depTestOutput, depOutput, getJDomJar());
- assertSourceRoots(orderEntries(myModule), srcRoot, testRoot, depSrcRoot, depTestRoot);
- assertSourceRoots(orderEntries(myModule).recursively(), srcRoot, testRoot, depSrcRoot, depTestRoot, getJDomSources());
+ assertClassRoots(dependencies(myModule).withoutSdk(), testOutput, output, depTestOutput, depOutput);
+ assertClassRoots(dependencies(myModule).withoutSdk().recursively(), testOutput, output, depTestOutput, depOutput, getJDomJar());
+ assertSourceRoots(dependencies(myModule), srcRoot, testRoot, depSrcRoot, depTestRoot);
+ assertSourceRoots(dependencies(myModule).recursively(), srcRoot, testRoot, depSrcRoot, depTestRoot, getJDomSources());
- assertClassRoots(orderEntries(myModule).withoutSdk().withoutModuleSourceEntries().recursively(), getJDomJar());
- assertSourceRoots(orderEntries(myModule).withoutSdk().withoutModuleSourceEntries().recursively(), getJDomSources());
- assertEnumeratorRoots(orderEntries(myModule).withoutSdk().withoutModuleSourceEntries().recursively().classes(), getJDomJar());
- assertEnumeratorRoots(orderEntries(myModule).withoutSdk().withoutModuleSourceEntries().recursively().sources(), getJDomSources());
+ assertClassRoots(dependencies(myModule).withoutSdk().withoutModuleSourceEntries().recursively(), getJDomJar());
+ assertSourceRoots(dependencies(myModule).withoutSdk().withoutModuleSourceEntries().recursively(), getJDomSources());
+ assertEnumeratorRoots(dependencies(myModule).withoutSdk().withoutModuleSourceEntries().recursively().classes(), getJDomJar());
+ assertEnumeratorRoots(dependencies(myModule).withoutSdk().withoutModuleSourceEntries().recursively().sources(), getJDomSources());
- assertEnumeratorRoots(orderEntries(myModule).withoutSdk().recursively().classes().withoutSelfModuleOutput(),
+ assertEnumeratorRoots(dependencies(myModule).withoutSdk().recursively().classes().withoutSelfModuleOutput(),
output, depTestOutput, depOutput, getJDomJar());
- assertEnumeratorRoots(orderEntries(myModule).productionOnly().withoutSdk().recursively().classes().withoutSelfModuleOutput(),
+ assertEnumeratorRoots(dependencies(myModule).productionOnly().withoutSdk().recursively().classes().withoutSelfModuleOutput(),
depOutput, getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().withoutDepModules().withoutModuleSourceEntries().recursively(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().withoutDepModules().withoutModuleSourceEntries().recursively(), getJDomJar());
assertEnumeratorRoots(
- orderEntries(myModule).productionOnly().withoutSdk().withoutDepModules().withoutModuleSourceEntries().recursively().classes(),
+ dependencies(myModule).productionOnly().withoutSdk().withoutDepModules().withoutModuleSourceEntries().recursively().classes(),
getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().withoutDepModules().withoutModuleSourceEntries());
- assertEnumeratorRoots(orderEntries(myModule).productionOnly().withoutModuleSourceEntries().withoutSdk().withoutDepModules().classes());
+ assertClassRoots(dependencies(myModule).withoutSdk().withoutDepModules().withoutModuleSourceEntries());
+ assertEnumeratorRoots(dependencies(myModule).productionOnly().withoutModuleSourceEntries().withoutSdk().withoutDepModules().classes());
}
public void testModuleJpsJavaDependencyScope() throws Exception {
@@ -160,13 +162,13 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
JpsModuleRootModificationUtil.addDependency(dep, createJDomLibrary(), JpsJavaDependencyScope.COMPILE, true);
JpsModuleRootModificationUtil.addDependency(myModule, dep, JpsJavaDependencyScope.TEST, true);
- assertClassRoots(orderEntries(myModule).withoutSdk());
- assertClassRoots(orderEntries(myModule).withoutSdk().recursively(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().exportedOnly().recursively(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().productionOnly().recursively());
+ assertClassRoots(dependencies(myModule).withoutSdk());
+ assertClassRoots(dependencies(myModule).withoutSdk().recursively(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().exportedOnly().recursively(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().productionOnly().recursively());
- assertClassRoots(orderEntries(myProject).withoutSdk(), getJDomJar());
- assertClassRoots(orderEntries(myProject).withoutSdk().productionOnly(), getJDomJar());
+ assertClassRoots(dependencies(myProject).withoutSdk(), getJDomJar());
+ assertClassRoots(dependencies(myProject).withoutSdk().productionOnly(), getJDomJar());
}
public void testNotExportedLibrary() throws Exception {
@@ -175,14 +177,26 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
JpsModuleRootModificationUtil.addDependency(myModule, createAsmLibrary(), JpsJavaDependencyScope.COMPILE, false);
JpsModuleRootModificationUtil.addDependency(myModule, dep, JpsJavaDependencyScope.COMPILE, false);
- assertClassRoots(orderEntries(myModule).withoutSdk(), getAsmJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().recursively(), getAsmJar(), getJDomJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().recursivelyExportedOnly(), getAsmJar());
- assertClassRoots(orderEntries(myModule).withoutSdk().exportedOnly().recursively());
+ assertClassRoots(dependencies(myModule).withoutSdk(), getAsmJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().recursively(), getAsmJar(), getJDomJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().recursivelyExportedOnly(), getAsmJar());
+ assertClassRoots(dependencies(myModule).withoutSdk().exportedOnly().recursively());
+ }
+
+ public void testAnnotations() {
+ JpsLibrary library = addLibrary();
+ String libraryUrl = "temp:///library";
+ library.addRoot(libraryUrl, JpsAnnotationRootType.INSTANCE);
+ JpsModuleRootModificationUtil.addDependency(myModule, library);
+ assertEnumeratorRoots(dependencies(myModule).annotations(), libraryUrl);
+
+ String moduleUrl = "temp://module";
+ JpsJavaExtensionService.getInstance().getOrCreateModuleExtension(myModule).getAnnotationRoots().addUrl(moduleUrl);
+ assertEnumeratorRoots(dependencies(myModule).annotations(), moduleUrl, libraryUrl);
}
public void testJdkIsNotExported() throws Exception {
- assertClassRoots(orderEntries(myModule).exportedOnly());
+ assertClassRoots(dependencies(myModule).exportedOnly());
}
public void testProject() throws Exception {
@@ -193,8 +207,8 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
final String output = setModuleOutput(myModule, false);
final String testOutput = setModuleOutput(myModule, true);
- assertClassRoots(orderEntries(myProject).withoutSdk(), testOutput, output, getJDomJar());
- assertSourceRoots(orderEntries(myProject).withoutSdk(), srcRoot, testRoot, getJDomSources());
+ assertClassRoots(dependencies(myProject).withoutSdk(), testOutput, output, getJDomJar());
+ assertSourceRoots(dependencies(myProject).withoutSdk(), srcRoot, testRoot, getJDomSources());
}
public void testModules() throws Exception {
@@ -229,7 +243,7 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
}
}
- private String addSourceRoot(JpsModule module, boolean tests) {
+ private static String addSourceRoot(JpsModule module, boolean tests) {
try {
File file = FileUtil.createTempDirectory(module.getName(), tests ? "testSrc" : "src");
return module.addSourceRoot(JpsPathUtil.getLibraryRootUrl(file), tests ? JavaSourceRootType.TEST_SOURCE : JavaSourceRootType.SOURCE).getUrl();
@@ -239,14 +253,6 @@ public class JpsDependenciesEnumeratorTest extends JpsJavaModelTestCase {
}
}
- private JpsJavaDependenciesEnumerator orderEntries(JpsProject project) {
- return JpsJavaExtensionService.dependencies(project);
- }
-
- private static JpsJavaDependenciesEnumerator orderEntries(JpsModule module) {
- return JpsJavaExtensionService.dependencies(module);
- }
-
private static void assertClassRoots(final JpsJavaDependenciesEnumerator enumerator, String... urls) {
assertEnumeratorRoots(enumerator.classes(), urls);
}