Issue Type: Bug Bug
Assignee: Unassigned
Components: native
Created: 07/Nov/12 6:14 AM
Description:

Given the following build options in a gnustep maven project:

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>1.0-alpha-7</version>
<extensions>true</extensions>
<configuration>
<compilerProvider>generic-classic</compilerProvider>
<compilerExecutable>gcc</compilerExecutable>
<sources>
<source>
<directory>src/main/oc</directory>
<includes>
<include>*/.m</include>
<include>*/.h</include>
</includes>
</source>
</sources>
<compilerStartOptions>
<compilerStartOption>`gnustep-config --objc-flags`</compilerStartOption>
</compilerStartOptions>
<compilerEndOptions>
<compilerEndOption>-lgnustep-base</compilerEndOption>
</compilerEndOptions>
<linkerStartOptions>
<linkerStartOption>`gnustep-config --objc-libs`</linkerStartOption>
</linkerStartOptions>
<linkerEndOptions>
<linkerEndOption>-lgnustep-base</linkerEndOption>
<linkerEndOption>-lobjc</linkerEndOption>
</linkerEndOptions>
</configuration>
</plugin>
</plugins>
</build>

It shows the following error upon 'install' target during compilation phase because Plexus BourneShell escapes '`' characters:

[INFO] /bin/sh c cd /home/user/Workspace/native && gcc '`gnustep-config' '-objc-flags`' -I/home/user/Workspace/native/src/main/oc -o/home/user/Workspace/native/target/objs/hello.o -c /home/user/Workspace/native/src/main/oc/hello.m -lgnustep-base
gcc: error: `gnustep-config: No such file or directory
gcc: error: unrecognized option ‘--objc-flags`’

I tried to install it without quotes, single quotes and double quotes but it didn't work. However, using that in command-line works:

gcc `gnustep-config --objc-flags` -I/home/user/Workspace/native/src/main/oc -o/home/user/Workspace/native/target/objs/hello.o -c /home/user/Workspace/native/src/main/oc/hello.m -lgnustep-base

Environment: Ubuntu 12.04
Project: Mojo
Priority: Minor Minor
Reporter: Jesús Liarte
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to