{"action":"created","issue":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/6","labels_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/6/comments","events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/6/events","html_url":"https://github.com/brunobowden/j2objc-gradle/issues/6","id":57203038,"number":6,"title":"Add libraries to J2Objc classpath","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-10T17:00:52Z","updated_at":"2015-02-10T18:01:02Z","closed_at":null,"body":"I tried to add the realtime-json lib to J2Objc https://github.com/goodow/realtime-json\r\n``realtime-json-0.5.5-SNAPSHOT-sources.jar`` is under ``${projectDir}/lib/``\r\n\r\nHere is my config: \r\n\r\n```\r\nj2objcConfig {\r\n j2objcHome \"/Applications/J2Objc/j2objc-0.9.6\" \r\n destDir \"${projectDir}/../number-incrementer-ios/Classes\"\r\n\r\ntranslateFlags \"--no-package-directories --prefixes prefixes.properties --mapping method-mappings.properties -use-arc -classpath ${projectDir}/lib/realtime-json-0.5.5-SNAPSHOT-sources.jar\"\r\n\r\ncompileFlags \"-ObjC -ljre_emul\"\r\n\r\ntranslateJ2objcLibs \"guava-14.0.1.jar\", \"javax.inject-1.jar\", \"jsr305-3.0.0.jar\"\r\n\r\nfilenameCollisionCheck = true\r\n\ttestExecutedCheck = false\r\n\r\n}\r\n```\r\n\r\nI does not compile (``gradle j2objcTranslate``). I get the following errors: \r\n\r\n```\r\nScript '/Users/mg/Documents/Grails/GGTS3.6.2/TestJ2Objc/j2objc.gradle' line: 328\r\n\r\n* What went wrong:\r\nExecution failed for task ':j2objcTranslate'.\r\n> Process 'command '/Applications/J2Objc/j2objc-0.9.6/j2objc'' finished with non-zero exit value 1\r\n\r\n* Try:\r\nRun with --info or --debug option to get more log output.\r\n\r\n* Exception is:\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':j2objcTranslate'.\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)\r\n\tat org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)\r\n\tat org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n\tat org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n\tat org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)\r\n\tat org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n\tat org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)\r\n\tat org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)\r\n\tat org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n\tat org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)\r\n\tat org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)\r\n\tat org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)\r\n\tat org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n\tat org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)\r\n\tat org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)\r\n\tat org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)\r\n\tat org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)\r\n\tat org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)\r\n\tat org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)\r\n\tat org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)\r\n\tat org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)\r\n\tat org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)\r\n\tat org.gradle.launcher.Main.doAction(Main.java:33)\r\n\tat org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)\r\n\tat org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)\r\n\tat org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)\r\n\tat org.gradle.launcher.GradleMain.main(GradleMain.java:23)\r\nCaused by: org.gradle.process.internal.ExecException: Process 'command '/Applications/J2Objc/j2objc-0.9.6/j2objc'' finished with non-zero exit value 1\r\n\tat org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:365)\r\n\tat org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)\r\n\tat org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:151)\r\n\tat org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:792)\r\n\tat org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:788)\r\n\tat org.gradle.api.Project$exec$4.call(Unknown Source)\r\n\tat J2objcTranslateTask.translate(/Users/mg/Documents/Grails/GGTS3.6.2/TestJ2Objc/j2objc.gradle:328)\r\n\tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)\r\n\tat org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)\r\n\tat org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n\t... 44 more\r\n\r\n\r\nBUILD FAILED\r\n```\r\n\r\nI suppose there is something wrong with my declaration of classpath?"},"comment":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/comments/73749219","html_url":"https://github.com/brunobowden/j2objc-gradle/issues/6#issuecomment-73749219","issue_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/6","id":73749219,"user":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T18:01:02Z","updated_at":"2015-02-10T18:01:02Z","body":"Confile, thinking about it that sounds wrong... can you point me to that\ncomment? Translate and compile are two different stages so should have\ndifferent flags.\n\nOn Tue, Feb 10, 2015, 9:56 AM Bruno <brunob@gmail.com> wrote:\n\n> Just add another line to j2objcConfig. Duplicate the translateFlags line\n> and then rename the copy as compileFlags.\n>\n> Can you file another issue to have compileFlags re-use translateFlags.\n> That'll make it easier to avoid mistakes.\n>\n> On Tue, Feb 10, 2015, 9:52 AM Confile <notifications@github.com> wrote:\n>\n>> You wrote in your comments that everything you add to translateFlags you\n>> have to add to compileFlags\n>>\n>> So what is the syntax for doing that?\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/brunobowden/j2objc-gradle/issues/6#issuecomment-73747709>\n>> .\n>>\n>\n"}}