Bug 172180 - New template variable ${filepath}
New template variable ${filepath}
Status: NEW
Product: platform
Classification: Unclassified
Component: Templates
All All
: P3 with 1 vote (vote)
: 8.0
Assigned To: Martin Entlicher
Depends on:
  Show dependency treegraph
Reported: 2009-09-14 14:35 UTC by starnixsa
Modified: 2013-09-02 14:02 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description starnixsa 2009-09-14 14:35:42 UTC
Unable to insert the path of a file as a template variable under Tools > Templates

Create a new template variable called ${filepath} that can read the current path of the file under the project.
e.g. Source Files > system > application > newfile.php
${filepath} = "./system/application/";

There is currently no central documentation for IDE, Project and Template variables that can be used. The closest I
found was at http://wiki.netbeans.org/FaqTemplateVariables

Thank you!
Comment 1 jaisondaniel 2013-05-27 08:51:20 UTC
In older version I used some variable to get the file-path value But unfortunately I forgot the variable name. That was I tried 2-3 years back, Now I tried some names like "folder", "directory", "container", "path" but nothing works. either implement this or provide some alternative solution to get a file-path value via template variable. This will help us to manage the source with better template.

Thank You.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo