From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Proper settings for tj3 report directory/output? Date: Fri, 31 Oct 2014 20:10:12 -0500 Message-ID: References: <87ppd88ipm.fsf@sbs.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkNCq-0000g5-7a for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 21:10:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkNCo-00030W-Jj for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 21:10:16 -0400 Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:58163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkNCo-000301-8J for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 21:10:14 -0400 Received: by mail-la0-f53.google.com with SMTP id mc6so6984098lab.26 for ; Fri, 31 Oct 2014 18:10:12 -0700 (PDT) In-Reply-To: <87ppd88ipm.fsf@sbs.ch> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Egli Cc: emacs-orgmode On Fri, Oct 31, 2014 at 8:36 AM, Christian Egli wro= te: > Hi John > > John Hendy writes: > >> I just re-set up tj3 on a new work computer and am a bit puzzled by >> the report directory structure. >> >> If I use C-e J p instead, I get: >> ~/working_dir/file.org >> ~/working_dir/file.tjp >> ~/working_dir/reports/Overview.html >> ~/working_dir/reports/taskjuggler/{css,examples,icons,scripts} > > I cannot reproduce this behaviour. Sorry... should have done this in the first place. Here's my exact setup with a test case: #+begin_src tj3 version $ tj3 --version TaskJuggler v3.5.0 - A Project Management Software #+end_src Config used with =3Demacs -Q=3D, followed by =3DM-x load file ~/path/to/min= -config=3D: #+begin_src min-config (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/") (require 'ox-taskjuggler) #+end_src Simple org tj file: #+begin_src tj-test.org * Project :taskjuggler_project: ** task1 :PROPERTIES: :task_id: task1 :start: 2014-11-01 :duration: 10d :END: ** task2 :PROPERTIES: :task_id: task2 :depends: task1 :duration: 10d :END: #+end_src When I export that (living in ~/Desktop) with =3DC-e J j=3D and then run =3Dtj3 ./tj-test.tjp=3D, I get: ~/Desktop/tj-test.org ~/Desktop/tj-test.tjp ~/Desktop/Plan.html ~/Desktop/taskjuggler/{css,examples,icons,scripts} Delete everything but tj-test.org, and re-export with =3DC-e J p=3D, and I = get: ~/Desktop/tj-test.org ~/Desktop/tj-test.tjp ~/Desktop/reports/Plan.html ~/Desktop/reports/taskjuggler/{css,examples,icons,scripts} Plan.html doesn't pick up the css or scripts as-is with either method. Once placed inside ~/Deskopt[/reports]/taskjuggler, it works. I attached screenshot showing the file path for both in the browser. >> I'm a bit confused by both behaviors. The variables I've defined in .ema= cs are: >> >> org-taskjuggler-target-version: 3.5 >> org-taskjuggler-default-reports: include "reports.tji" (custom report >> I've defined) >> >> As far as I know, these are relevant but left as the default that came w= ith org: >> org-taskjuggler-proces-command: "tj3 --silent --no-color --output-dir %o= %f" >> org-taskjuggler-reports-directory: "reports" > > Your analysis is correct. The pertinent vars are mostly > org-taskjuggler-reports-directory, org-taskjuggler-proces-command and to > some extent org-taskjuggler-target-version. And as you see the exporter > just delegates to tj3 to put the reports in a specific directory by > using --output-dir. This should work. After going through all that, I'm pretty sure this is a tj3 or setup issue. I futzed with --output-dir, but the report and the taskjuggler directory are always the same relatively to one another (so --output-dir "reports" yields reports/Plan.html, and reports/taskjuggler). If you say --output-dir "reports/taskjuggler", you'll just get another layer which happens to work since the previous taskjuggler dir is still there. I filed an inquiry/issue on github to see what Chris has to say: - https://github.com/taskjuggler/TaskJuggler/issues/154 John > > Thanks > Christian > > -- > Christian Egli > Swiss Library for the Blind, Visually Impaired and Print Disabled > Grubenstrasse 12, CH-8045 Z=C3=BCrich, Switzerland > >