emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Christian Egli <christian.egli@sbs.ch>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Proper settings for tj3 report directory/output?
Date: Fri, 31 Oct 2014 20:10:12 -0500	[thread overview]
Message-ID: <CA+M2ft9Qy02H-NGbMxgCyDBkooqVREmNMmWGt=5W4dJ2gGjtOg@mail.gmail.com> (raw)
In-Reply-To: <87ppd88ipm.fsf@sbs.ch>

On Fri, Oct 31, 2014 at 8:36 AM, Christian Egli <christian.egli@sbs.ch> wrote:
> Hi John
>
> John Hendy <jw.hendy@gmail.com> 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 =emacs -Q=, followed by =M-x load file ~/path/to/min-config=:

#+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 =C-e J j= and then run
=tj3 ./tj-test.tjp=, 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 =C-e J p=, 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 .emacs 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 with 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ürich, Switzerland
>
>

  reply	other threads:[~2014-11-01  1:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29 23:39 Proper settings for tj3 report directory/output? John Hendy
2014-10-31 13:36 ` Christian Egli
2014-11-01  1:10   ` John Hendy [this message]
2014-11-01  1:11     ` John Hendy
2014-11-01 21:29 ` John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+M2ft9Qy02H-NGbMxgCyDBkooqVREmNMmWGt=5W4dJ2gGjtOg@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=christian.egli@sbs.ch \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).