Log4j.properties location for ant and kodo tools

Greetings all
Is it possible to configure the kodo ant tasks,
such as jdoc (kodo.ant.JDOEnhancerTask) to use
a log4j.properties file that is not in the
classpath?
We generally have our log4j.properties
file in a separate location away from the classpath
and for standard junit and java ant targets we can
set it's location via a jvmarg...
Version: 3.0.0
Thanks
droo.

Ok thanks for the help.
Perhaps I could suggest for a future version that the
Kodo Ant Tasks include the ability to specify a "jvmarg"
like you can for java and junit targets now, for example:
<taskdef
name="jdoc"
classname="kodo.ant.JDOEnhancerTask"
classpathref="compile.path" />
<jdoc>
<fileset refid="all.jdo.files" />
<classpath refid="other.path" />
<config propertiesFile="${kodo.properties}"/>
<jvmarg value="-Dlog4j.properties=file:///my/log4j/config" /
>
<jvmarg value="-Djava.compiler=NONE" />
<jvmarg value="-Dfred=mary" />
</jdoc>
But if not then it's ok too :) Thanks again.
droo.
Droo-
I'm not aware of an ant task to set system properties. You could
specify it on the command line. E.g.,:
ant -Dlog4j.configuration=/my/log4j/config mytarget
You could also install beanshell and use the beanshell target to set
it. E.g.:
<target name="setlog4jproperty">
<script language="beanshell"><![CDATA[
               System.setProperty ("log4j.configuration", "/my/log4j/config");
]]> ]]></script>
</target>
See the ant documentation for more on the required dependencies for
beanshell.
In article <[email protected]>, droo wrote:
Yes of course, but the real question is...
How do I specify a system property for a
kodo ant task?
Sorry if this question is too stupid!
Here is what I have...
<taskdef
name="jdoc"
classname="kodo.ant.JDOEnhancerTask"
classpathref="compile-path" />
<jdoc>
<fileset refid="all-jdo-files" />
<classpath refid="post-compile-path" />
<config propertiesFile="${nf.kodo.properties}"/>
</jdoc>
In <[email protected]> Marc Prud'hommeaux wrote:
Droo-
I think you can specify the "log4j.configuration" system property.
Take a look at:
http://jakarta.apache.org/log4j/docs/manual.html
In article <[email protected]>, droo wrote:
Greetings all
Is it possible to configure the kodo ant tasks,
such as jdoc (kodo.ant.JDOEnhancerTask) to use
a log4j.properties file that is not in the
classpath?
We generally have our log4j.properties
file in a separate location away from the classpath
and for standard junit and java ant targets we can
set it's location via a jvmarg...
Version: 3.0.0
Thanks
droo.

Similar Messages

  • Can't uncheck "Enable Rubber Band for Pen and Curvature Tool" in Preferences

    Can't uncheck "Enable Rubber Band for Pen and Curvature Tool" in Preferences. Anyone else have this problem?

    jartist,
    You may try the list.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Acrobat pro: how set default properties for arrow and line tool seperately?

    I have a problem with the 'comment and markup' tools in Adobe Acrobat Pro.
    I would like to change the defaults of some of the tools, eg the arrow and the line tool.
    This can be achieved by right-clicking on something drawn using the tool in question and then selecting 'properties' - or by selecting the tool and then press ctrl+E, wich opens a 'Callout Tool Properties', and then change what you want there. The latter option keeps the changes as defaults - the former offers a box to tick in the 'properties' dialogue that opens - or, you can right-click on the object again after having changed the properties, and then select 'Make Current Properties Default'.
    My Problem is now, that, apparently, you cannot choose and save default properties freely and for each tool. I woul like to have the default properties for the line tool set as the following:
    -line color: yellow
    -line thickness: 8pt
    -opacity: 60%
    and fot the arrow tool as this:
    -line color: red
    -line thickness: 1pt
    -opacity: 100%
    This all works fine as long as the program is open. As soon as I exit and start it again opening another document /the same one again, the arrow tool changes to
    -line color: yellow
    -opacity: 60%
    only the line thickness remains at 1pt.
    If I change the properties of the line to the ones I want for the arrow, the arrow properties remain unaltered if I close Acrobat Pro.
    Why do these properties interfere? Why is it "line color/thickness" in both? Why, then, do only the opacity and the color interfere, but not the thickness - even if it's the latter two properties that are bot called "line xxx"? Why does Acrobat not save all properties for these two shapes seperately - even IF the two shapes are both of a line-like kind?
    Is there a way to get around this?

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • Log4j.properties location

    Hello,
    I want my web application uses a log4j.properties file located in a directory outside Tomcat, in /var/app/conf/.
    I'm using the PropertyConfigurator to configure log4j. If I put log4j.properties in the WEB-INF/classes directory all works fine, but if I put it in the "external" directory works but I get these warnings:
    log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
    log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
    How could I avoid these warnings?
    Thanks!

    I am putting log4j.properties file in same folder
    where the java class file is, it's working fine. If
    i'm puting it in some different folder (folder is on
    class path) it's giving the proper output as log file
    but throwing exception at console as:I don't think it's the location of the java class, but rather
    where you are when you run the program. I'm running
    junit tests from within eclipse, and need to put the file
    one directory above my "com" directory. From the
    command line, the properties file just needs to be in
    the current directory. Perhaps using a fully qualified
    path name will solve your problem; no matter where
    you run the program, the file will be found. This
    assumes you have access to a fully qualified location
    (probably bad). Best to determine from where the
    program will be run, and place the file in a relative
    directory off of that (perhaps at deploy time).
    Cheers,
    Brian

  • Velocity Displcement Calibration for Sound and Vibration Tool Kit

    Hello Guys,
    I have been working on sound and vibration tool kit recently.
    I'm taking input from sound port of PC by signal generator and taking single and double Integration for velocity and displacement resp.
    I want to check the correctness of the values for different amplitudes,and different frequencies of signal, velocity and displacement. 
    The RMS values for signal is calibrated as per signal generator, RMS value for the Velocity is correct for a limited frequency range 
    and the RMS value for the displacement is not at all calibrated for any of the frequency. 
    I will appreciate replies,

    Hey guys,
    The following vi is working
    for the signal generated with in Labview but if the signal is taken
    from mic port through signal generator.
    then the velocity and displacement is not coming.
    i'm attaching vi below kindly  reply if someone get something
    Attachments:
    avd signal generator labview.vi ‏26 KB
    avd mic port.vi ‏36 KB

  • Can i have same ORACLE_BASE directory location for Grid and RDBMS home ?

    Grid Version:11.2.0.3
    OS : RHEL 5.8
    Can I have same ORACLE_BASE location for Grid (CRS) and RDBMS software Homes ?

    The OFA guideline for ORACLE_BASE is /u01/app/<owner>.  If you are using the same owner for all software (let's call him "oracle") then a simple installation will have one base /u01/app/oracle.  This base will be shared by all installations of Grid and RDBMS software.  But, if you use two separate owners (let's call them grid and oracle) then you will have two separate ORACLE_BASE locations /u01/app/oracle and /u01/app/grid.  I always use two separate owners, but I know many people who only use the oracle account and that is fine too.
    Oracle allows every ORACLE_HOME to have a unique base.  There is no requirement to install more than one ORACLE_HOME under a given ORACLE_BASE location.  This is just an extension of what I said above, that the ORACLE_HOMEs for Grid and RDBMS can be stored under separate ORACLE_BASEs. 
    If you are using RAC then I strongly suggest you read chapter 1 of the Oracle Real Application Clusters Installation Guide.  Read section "Overview of Oracle Base and Oracle Home Directories". The rules for ORACLE_BASE are as I noted above, but the rules for ORACLE_HOME change: the Grid ORACLE_HOME is not to be a sub-directory of the Grid ORACLE_BASE as it is when not using RAC.  So, with RAC your directory structure might look more like this:
    su -
    umask 0022
    mkdir -p /u01/app/oraInventory
    # Grid Base
    mkdir -p /u01/app/grid
    # Grid Home
    mkdir -p /u01/app/12.1.0.1/grid
    # Oracle  Base
    mkdir -p /u01/app/oracle
    # Oracle Home
    mkdir -p /u01/app/oracle/product/12.1.0.1/db_1
    # Ownership for all of the above...
    chown grid:oinstall /u01/app/grid
    chown grid:oinstall /u01/app/oraInventory
    chown grid:oinstall /u01/app/12.1.0.1
    chown grid:oinstall /u01/app/12.1.0.1/db_1
    chown oracle:oinstall /u01/app/oracle
    My examples show 12.1.0.1 but it's the same for 11.2.0.3.
    There's no requirement to create the home directories prior to running the OUI.  It can create them for you.  I just shown these commands to help you understand the big picture.
    The OUI will pop-up a warning if the Grid user's ORACLE_HOME is outside of his ORACLE_BASE as shown in the above mkdir commands, which is funny since it is the recommended setup in the Oracle RAC documentation.  I submitted a bug report several years ago.  To be consistent across all of my RAC and non-RAC servers I follow the more strict rules of RAC and use the mkdir commands shown above.

  • What are the PSE 8 default locations for photos and catalog files in Windows 7?

    I can only find this information in the Knowlege Base for XP and Vista.
    Thanks for help

    The default locations for catalog folders on Wndows 7 is the same as on Vista:
    http://kb2.adobe.com/cps/515/cpsid_51536.html
    To find out where the current catalog folder is located, do Help > System Info.
    The default locations for photos are under My Pictures on Windows 7, as compared to Pictures on Vista.

  • New thin aluminum keyboard has different locations for eject and volume

    in fact I can not find a control for volume. the brightness is listed for F1 and F2 but in fact is f14 and 15, eject is both f12 and the eject button and the listed f10-12 for volume don't work on my tiger equipped G4. My previous keyboard died and it worked fine.

    Install the keyboard update
    <http://www.apple.com/support/downloads/keyboardsoftwareupdate12.html>
    Some key functions are different. See:
    <http://docs.info.apple.com/article.html?artnum=306169>

  • Two locations for movies and music

    Has anyone ever split their library for music and movies? I want to keep my music on the hard drive and place my movies on an external hard drive. Any way of doing this?
    Thanks .

    you have your appletv connected to itunes as a sharing connection only (ie not sync options).
    you need to remove the link to itunes and set it up again, this time as a primary library.

  • Trying to use Oracle Locator for latitude and longitude proximity searches

    I am prototyping using Oracle Locator to do proximity searches and other spatial operations within the database in our software products. I’ve got it working fine in SQL Server, where geodetic is built in as well as geometric features, but with Oracle we’re trying to restrict ourselves to the Locator features so our customers are forced to buy the add-on. I am getting perplexing results, as you can see if you run the little test program I wrote.
    I am using lat and long as the point coordinates. I am inserting the data using
    SDO_GEOMETRY(2001, 4326, SDO_POINT_TYPE(?, ?, null), null, null
    Then I am doing the search with
    SELECT pointname, SDO_NN_DISTANCE (1) distance_in_miles
    FROM geotest g
    WHERE SDO_NN(g.geopoint, sdo_geometry(2001, 4326, SDO_POINT_TYPE(38.683, 123.083, NULL), NULL, NULL), 'distance=1000 unit=mile', 1) = 'TRUE'
    ORDER BY distance_in_miles
    I am getting distances from 56 to 86 units, whatever the units are.
    Am I attempting the impossible with Locator, to use lat and long and then expect the sdo_nn function to work in miles?
    Select results:
    POINTNAME DISTANCE_IN_MILES
    Point number 19 56.8497254738894
    Point number 17 57.0758802885512
    Point number 5 62.096857977487
    Point number 3 67.3555572959989
    Point number 16 70.8005407529483
    Point number 1 73.0370426667902
    Point number 9 73.1047740624495
    Point number 14 73.1451566004902
    Point number 11 74.9344307572887
    Point number 10 75.3710529989389
    Point number 2 75.423714095366
    Point number 8 77.2121183101138
    Point number 4 77.6458963754559
    Point number 18 80.4569749046142
    Point number 6 81.0025026191188
    Point number 20 81.8444977200089
    Point number 13 83.4095236051998
    Point number 15 86.9333533902019
    Point number 7 88.9312783958262
    Point number 12 98.72957787982
    Point number 0 98.9999489634554
    21 rows selected

    Couple of things that we found out using sdo_nn here...
    It works...but the knobs need to be turned in the right order...
    You may have done this already...but here is what we have...
    a. we create our table containing the location sdo_geometry column ..( in our case the column is called location )
    b.We loaded the data..If you elected to use a partitioned table for your spatial data and created the corresponding spatial index as local...your sql will need to account for that.if your index is global ..don't worry about it
    c. We inserted the metadata...this needs to be done once per table...by either the dba or the schema owner...
    INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('<YOUR TABLE NAME>', '<SPATIAL COLUMN NAME>',
    MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('LONGITUDE', -180.0, 180.0, 0.5),
    MDSYS.SDO_DIM_ELEMENT('LATITUDE', -90.0, 90.0, 0.5)
    8307);
    COMMIT;
    If this is not done before the spatial index is created...stuff won't work...
    d. create your spatial index
    e. our query looked something like this...( I changed the table names )
    This returns the top 30 results sorted by distance in feet...
    SELECT LOCATION_KEY,
    result_center_distance
    FROM
    SELECT LOCATION_KEY,
    SDO_NN_DISTANCE(1) result_center_distance
    FROM LOCATION_OWNER.D_LOCATION dlocation
    WHERE SDO_NN(dlocation.LOCATION,
    MDSYS.SDO_GEOMETRY(2001,8307,MDSYS.SDO_POINT_TYPE(-97.07845,33.138006,null),null,null), 'SDO_NUM_RES=31 unit=FOOT distance=5800.0 SDO_MAX_MEMORY=50000000', 1) = 'TRUE'
    ORDER BY 2
    WHERE ROWNUM <= 31
    We had to use this structure because our index is local...and sdo_nn will return the sdo_num_res results for each partition...so you need to get the results first..then treat it as a top-n query...
    If you index is global...this should work
    SELECT LOCATION_KEY,
    SDO_NN_DISTANCE(1) result_center_distance
    FROM LOCATION_OWNER.D_LOCATION dlocation
    WHERE SDO_NN(dlocation.LOCATION,
    MDSYS.SDO_GEOMETRY(2001,8307,MDSYS.SDO_POINT_TYPE(-97.07845,33.138006,null),null,null), 'SDO_NUM_RES=31 unit=FOOT distance=5800.0 SDO_MAX_MEMORY=50000000', 1) = 'TRUE'
    ORDER BY 2
    If you want the distance in MILE...replace FOOT by MILE...
    good luck...
    Edited by: user5431290 on Oct 23, 2011 9:36 AM

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • Can I create a custom location for Premiere and AME presets?

    Our institution has volatile user accounts meaning that all user specific preferences, presets and files are deleted on log off.
    However I would like to make some custom Premiere sequence presets and AME export presets available to all users by default.
    Can anyone suggest a way to store these presets in a non-user specific location and still have Premiere and AME locate them?
    Alternatively if anyone can suggest a way of packaging up these presets and copying them into the appropriate user locations on logon that would also be of interest!?
    Any suggestions appreciated (some further details and system spec below)...
    thanks,
    Darryl
    Typical location of presets as far as Im aware:
    Users/[USER]/Documents/Adobe/Premiere Pro/6.0/Settings/Custom/
    Users/[USER]/Library/Preferences/Adobe/Common/AME/6.0/Presets
    Premiere Pro CS6
    AME CS6
    iMacs with 10.8.4 (2.7 Core i5 8GB)
    (Also looking for Windows 7 solution for same issue)

    Our institution has volatile user accounts meaning that all user specific preferences, presets and files are deleted on log off.
    However I would like to make some custom Premiere sequence presets and AME export presets available to all users by default.
    Can anyone suggest a way to store these presets in a non-user specific location and still have Premiere and AME locate them?
    Alternatively if anyone can suggest a way of packaging up these presets and copying them into the appropriate user locations on logon that would also be of interest!?
    Any suggestions appreciated (some further details and system spec below)...
    thanks,
    Darryl
    Typical location of presets as far as Im aware:
    Users/[USER]/Documents/Adobe/Premiere Pro/6.0/Settings/Custom/
    Users/[USER]/Library/Preferences/Adobe/Common/AME/6.0/Presets
    Premiere Pro CS6
    AME CS6
    iMacs with 10.8.4 (2.7 Core i5 8GB)
    (Also looking for Windows 7 solution for same issue)

  • How to allow the location for faces and places with iOS 4 on an iPhone 3GS?

    I installed ios4 on my iphone 3gs, it went well, then the first time i open the camera app it asked me to allow tha application to know the location, firs i said no... now that i really know what this feature does, i would like to allow it, any idea how to allow it again? if i open the camera application again it doesn't ask for it again
    thanks

    Thanks "justinphilly", following is the solution:
    Settings > General > Location Services > Scroll down to camera, and click yes.

  • Rack Location for Xserve and RAID

    I am adding a new Xserve to a 12U enclosed cabinet with just 2U remaining and the most convenient space is in a slot directly below our Xserve RAID. Is there any reason that this is a bad idea. The cabined has fans built in, and though the room can get hot we have not experience any failures for many years.

    There's no reason you can't put the Xserve directly under the Xserve RAID. You always want more airflow around the bigger (more heat generating) piece of equipment but the RAID is only partial depth compared to the Xserve so you get more room around it than if you place one Xserve on top of another.
    If your rack is that full the reshuffling everything is going to get you very little gain for a lot of work. I'd say go ahead and keep an eye on it.
    =Tod

  • Helix - Exact dimensions of screen+bezel and cutout locations for custom screen protector?

    Hey Helix owners,
    I want to get a screen protector for the Helix, but I don't want the anti-glare one offered by 3M.  Photodon prints custom screen protects to dimensions you give them.  I was hoping to get the dimensions of the screen+bezel and the cutout locations for camera and tablet button... I'm not able to measure these very precisely myself.  Anyone know where this information can be obtained?  
    I called 3M and they sent me a data sheet for their anti-glare protector, but it contained no info on dimensions and cutout locations.
    Dylan

    Hi,
    I'm from germany so no 'best buy' but I think I will lock around sleeve/bag for a different product with same measures. Any tip?
    The clear plastic case is not what I want. I would like to use the player without such protections. I just want a sleeve to protect the player while its in my jacket/pants.
    Btw, i have bought this version: Creative Zen (maybe european version?). I also doesn't seem to have your mentioned sleeve. I also couldn't find it on the website.
    Anyway, thank you,
    Chris

Maybe you are looking for

  • Is there a way to make the User Interface bigger?

    I have an ongoing discussion about this related to other Apps, and there is a fix which sort of work in Photoshop. But I have not seen anything for Premier Pro. Many of the icons are quite easy to use and see anyhow, but the text shrinks down to almo

  • Show attached material picture in ABAP screen object

    Hello, I'm attaching material pictures with the GOS create attachment option. Here I could attach all kind of documents including the files "*.gif, *.tif, etc." These pictures are stored on our document server. Another possibility I use is to create

  • Thought of functional consultant Vs abap

    Dear All, I am techno functional consultant. I thought and very funny sometimes, but its bad habit to laugh on anyone. Thought of Functional consultant: I have requirement of  report X in which when user create PO--->make GR> take print then it shoul

  • Configure EWA for our SAP PRD server

    Hello, I would like to configure EWA reports for our PRD system. In our Solman (7.01), we have the following: smsy -> Systems Sap ERP ENHANCE PACKAGE with BAS, DEV, PRD and BAS systems SAP SOLUTION MANAGER with SSM system solution_manager -> Solution

  • Servlet Receives IOException

              Hi,           Listed below is an exception that comes normally when we launch           our application on WebLogic. We have hosted the application on           a Unix Box with the following config.           Here are the details: