![]() ![]() To select data or query XML documents using XPath, we can take the sel ( select) command. ![]() XMLStarlet defines a set of commands to perform different XML operations - for example, ed ( edit) to edit or update an XML document, tr ( transform) to transform an XML document using XSLT, and so on. In this tutorial, we’re going to discuss three different approaches to work with XPath under the command line: //book/title – this XPath expression selects all the book title elements if the year of publishing is later than 2004 (the “ year” element has a value greater than 2004).– this XPath expression selects all the title elements of books written in French (the “ book” element has a “ lang” attribute with a value of “ fr“).Later, we’ll address how to evaluate a couple of XPath expressions under the Linux command line: In our books.xml file, we have four books. IntelliJ IDEA 14.First of all, let’s create an XML document, books.xml, as the input XML file that we’ll use throughout this tutorial:.NET (1) 2015 (1) AOP (1) Android (1) BlazeDS (1) C (1) C (1) JCR (1) Mac (1) PHP (1) UI (1) apache activemq (1) apache commons (1) apache synapse (1) asm (1) aspectj (1) awk (1) bash (1) build tools (1) clojure (1) code kata (1) code snippet (1) completablefuture (1) continuous delivery (1) continuous integration (1) dandelion (1) debugger (1) devdays (1) docker (1) documentation (1) dsl (1) esb (1) fix (1) git (1) hacking (1) hot deploy (1) hotswap (1) jackrabbit (1) java 8 (1) javaone (1) javaone2010 (1) javaone2015 (1) javapackager (1) javassist (1) jboss modules (1) jdbc (1) jeeconf (1) jenkins (1) jfokus (1) jfokus2012 (1) jms (1) jpa (1) kiev (1) kotlin (1) krakow (1) mbed (1) microservices (1) muCommander (1) mule (1) myeclipse (1) openportal (1) practices (1) predictions (1) python (1) radar (1) riga (1) san francisco (1) sed (1) ssh (1) stomp (1) subversion (1) sun tech days (1) tallinn (1) teamcity (1) testing (1) thoughts (1) training (1) university (1) unix (1) vaadin (1) version control (1) vim (1) waterfall (1) wildfly (1) xpdays (1) youtrack (1) Java (99) job (24) jrebel (20) intellij (19) software (18) programming (17) eclipse (16) gsoc2008 (14) jboss drools (12) presentation (11) travel (10) gsoc2007 (9) apache camel (8) books (8) groovy (8) netbeans (8) software development (8) fun (7) javaone2007 (7) gradle (6) gwt (6) xrebel (6) 33rd degree (5) JAZOON2008 (5) bytecode (5) conference (5) life (5) news (5) oracle (5) twitter (5) video (5) devnation (4) devoxx (4) embedded (4) geekout (4) linux (4) maven (4) quickfixj (4) springframework (4) JAZOON2010 (3) erlang (3) grails (3) ide (3) javaee (3) jbossas (3) jvm (3) jvm language summit (3) liverebel (3) rant (3) scala (3) scripting (3) sql (3) ubuntu (3) ucertify (3) EJB (2) FPGA (2) Flex (2) JavaZone2011 (2) JavaZone2012 (2) NORCHIP2007 (2) agile (2) ant (2) artifactory (2) certification (2) confess_2012 (2) geecon (2) javaone2013 (2) jax-rs (2) jetty (2) jfokus2011 (2) oss (2) profilers (2) rebellabs (2) resteasy (2) ruby (2) screencast (2) tomcat (2) tools (2) websphere (2). The only missing bit there is a proper icon, which I was too lazy to bother about :) outfile mu.app \ -srcfiles mucommander.jar -appclass -name "muCommander" \ -title "muCommander" $JAVA_HOME/bin/javapackager -deploy -native -outdir. Apparently, there's a javapackager utility included in JDK distribution that you can use to create native packages.īy running the following command in the same folder where mucommander.jar is located, it created the desired artefacts: We should do better! So I found another documentation page: Java Platform, Standard Edition Deployment Guide: Self-Contained Application Packaging. One has to download some strange utility and use a legacy build tool to assemble the final artifact. This is all cool and works, but the process is a bit clumsy. Downloaded the appbundler utility from Ģ. ![]() And the instructions worked just fine! Here's what I did:ġ. So I found this guide: Packaging a Java App for Distribution on a Mac. So I tried looking for an alternative solution. However, I didn't have enough patience to do apply the tool. One option is to assemble the *.app package using Launch4j. Launching a GUI app from the command line is not convenient at all. The native installer did not work, saying that the launcher is corrupted, but the portable version worked just fine via the command line: Stumbled upon an issue with installing muCommander on Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |