;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313&\207" [require javaimp-util custom-declare-variable javaimp-mvn-program funcall function #[0 "\300\207" [#1="mvn"] 1 #1#] "Path to the `mvn' program. Customize it if the program is not\non `exec-path'." :group javaimp :type string] 8) #@169 Calls `mvn help:effective-pom' on FILE, reads project structure from the output and records which files belong to which modules and other module information (fn FILE) (defalias 'javaimp--maven-visit #[257 "\301\302\"\210\303\304\305\306!\307%\310!\311\312\313\"\"\314@\315#\211\205=\316\"\210\311\317\320\321\"\"\211\203;\322\323\324\325\326#\"\210\210\211\207" [javaimp-mvn-program message "Visiting Maven POM file %s..." javaimp--call-build-tool javaimp--maven-effective-pom-handler "-f" javaimp-cygpath-convert-maybe "help:effective-pom" javaimp--maven-projects-from-xml mapcar make-closure #[257 "\301\300\"\207" [V0 javaimp--maven-module-from-xml] 4 "\n\n(fn PROJ-ELT)"] javaimp--build-tree nil javaimp--maven-fill-modules-files javaimp-node-contents javaimp--select-nodes-from-tree #[257 "\301!>\204\302\303\304D\"\210\211\305H?\207" [cl-struct-javaimp-module-tags type-of signal wrong-type-argument javaimp-module 3] 5 "\n\n(fn M)"] error "Cannot find file for module(s): %s" mapconcat javaimp-module-id ", "] 12 (#$ . 393)]) (defalias 'javaimp--maven-effective-pom-handler #[0 "\212eb\210\300\301!\210\302\224)\212eb\210\300\303!\210\304\305\306\307!\310Q!\210\302\225)\311\"\207" [re-search-forward "<\\?xml\\|" xml-parse-region] 5]) #@95 Analyzes result of `mvn help:effective-pom' and returns list of elements (fn TREE) (defalias 'javaimp--maven-projects-from-xml #[257 "\300\236\301\236\203 C\207\211\203\302\300\"\207\303\304!\207" [project projects javaimp--xml-children error "Neither nor was found in pom"] 6 (#$ . 1735)]) #@22 (fn ELT FILE-ORIG) (defalias 'javaimp--maven-module-from-xml #[514 "\300\301\"\302\303\304!\305\304\300\306 \"!\307\310\311 \312\313\300\314\"!\206\"\315\211\316\235\2052\313\300\317\"!\320Q\262\321\322\323\313\300\324\"!!!\322\323\313\300\325\"!!!D\326\322\323\313\300\327\"!!!\330\310\331\332 \333\334&\207" [javaimp--xml-child build make-javaimp-module :id javaimp--maven-id-from-xml :parent-id parent :file nil :file-orig :final-name javaimp--xml-first-child packaging "jar" ("jar" "war") finalName "." :source-dirs file-name-as-directory javaimp-cygpath-convert-maybe sourceDirectory testSourceDirectory :build-dir directory :dep-jars :load-ts current-time :dep-jars-path-fetcher javaimp--maven-fetch-dep-jars-path] 24 (#$ . 2072)]) #@12 (fn ELT) (defalias 'javaimp--maven-id-from-xml #[257 "\300\301\302\303\304\"!\305\302\303\306\"!\307\302\303\310 \"!&\207" [make-javaimp-id :group javaimp--xml-first-child javaimp--xml-child groupId :artifact artifactId :version version] 11 (#$ . 2837)]) #@18 (fn FILE TREE) (defalias 'javaimp--maven-fill-modules-files #[514 "\303\304\305\"r\211q\210\306\307\"\216\310!\210\311ed\"*\262\312\236\313!\314!>\204-\315\316\317D\"\210\211\320H\203H\314!>\204B\315\316\317D\"\210\211\321H\204U\322\323\"\210\306\324\"\202Y\306\325\"\326\306\327\"\"\206i\330\331#\314! >\204x\315\316\332D\"\210\211\321H\262\314!\n>\204\214\315\316\333D\"\210\211\211\321 I\266\334\335\336\337\340\"\341\"\"\211\211\205\273\211@\342\343 !\344!\345Q\n\"\210A\266\202\202\240\207" [cl-struct-javaimp-id-tags cl-struct-javaimp-node-tags cl-struct-javaimp-module-tags generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents xml-parse-region project javaimp--maven-id-from-xml type-of signal wrong-type-argument javaimp-id 1 3 message "File %s contains incomplete id, will check artifact only" #[257 "\302\300! >\204\303\304\305\300D\"\210\300\306H\302! >\204!\303\304\305D\"\210\306H\232\207" [V0 cl-struct-javaimp-id-tags type-of signal wrong-type-argument javaimp-id 2] 6 "\n\n(fn TESTED-ID)"] #[257 "\300\232\207" [V0] 3 "\n\n(fn TESTED-ID)"] javaimp--find-node-in-tree #[257 "\300\302! >\204\303\304\305D\"\210\306H!\207" [V0 cl-struct-javaimp-module-tags type-of signal wrong-type-argument javaimp-module 1] 6 "\n\n(fn M)"] error "Cannot find module for id %s (taken from file %s)" javaimp-node javaimp-module mapcar javaimp--xml-first-child javaimp--xml-children javaimp--xml-child modules module javaimp--maven-fill-modules-files file-name-directory file-name-as-directory "pom.xml"] 14 (#$ . 3105)]) #@15 (fn MODULE) (defalias 'javaimp--maven-fetch-dep-jars-path #[257 "\302\303\304\305\306! >\204\307\310\311D\"\210\312H!\313%\207" [javaimp-mvn-program cl-struct-javaimp-module-tags javaimp--call-build-tool #[0 "eb\210\300\301!\210\302y\210\303\304!\207" [search-forward "Dependencies classpath:" 1 thing-at-point line] 2] "-f" javaimp-cygpath-convert-maybe type-of signal wrong-type-argument javaimp-module 3 "dependency:build-classpath"] 10 (#$ . 4766)]) (provide 'javaimp-maven)