Code Monkey home page Code Monkey logo

Comments (2)

leiless avatar leiless commented on August 18, 2024

If I replace the
<parameter>+'%Y/%m/%d %H:%M:%S %z'</parameter>
with
<parameter>+%Y/%m/%d %H:%M:%S %z</parameter>
, the single quotes are gone.

Manifest-Version: 1.0
Created-By: Apache Maven 3.6.3
Built-By: lei
Build-Jdk: 11.0.11
Build-Datetime: 2021/07/27 17:56:13 +0800

from dellroad-stuff.

archiecobbs avatar archiecobbs commented on August 18, 2024

The behavior is correct.

Single quotes are a shell quoting mechanism; with the Maven plugin, there is no command line so there is no quoting needed. Instead, arguments are delimited by the XML tags.

On the command line, to pass an argument with spaces you need quotes, e.g.:

$ echo foo    bar
foo bar
$ echo 'foo    bar'
foo    bar

In the plugin no quoting is necessary:

<command>echo</command>
    <parameters>
        <parameter>foo   bar</parameter>
    </parameters>

from dellroad-stuff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.