Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing stdout #34

Closed
atian25 opened this issue May 14, 2013 · 1 comment
Closed

missing stdout #34

atian25 opened this issue May 14, 2013 · 1 comment

Comments

@atian25
Copy link

atian25 commented May 14, 2013


    shell: {
      jar: {
        options: {
          stdout: true,
          sterr: true,
          execOptions: {
            cwd: 'apk-packer'
          }
        },
        command: 'java -jar tools\\apktool.jar b -f 9gameclient-debug 9gameclient-test.apk'
        // command: [
        //   'java -jar tools\\apktool.jar b -f 9gameclient-debug 9gameclient-test.apk',
        //   'ls','java -version'
        //   //'jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -storepass 123456 9gameclient-test.apk test'
        // ].join('&&')
      }

when run at cmd, output

D:\Desktop\clientapp-1.2.3\apk-packer>java -jar tools/apktool.jar b -f 9gameclient-debug 9gameclient-test.apk
I: Copying classes.dex file...
I: Copying raw resources...
I: Copying libs...
I: Building apk file...

but using grunt-shell output nth:

D:\Desktop\clientapp-1.2.3>grunt shell:jar
Running "shell:jar" (shell) task

Done, without errors.

even using java -x output Done, without errors. but expect Unrecognized option: -x Could not create the Java virtual machine.

did I missing any config?

@sindresorhus
Copy link
Owner

You need to set failOnError to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants