[svn] 2847: add code coverage ability to asc build.xml ( clover jar and license required to run)

Revision: 2847
Author: [email protected]
Date: 2008-08-14 15:06:10 -0700 (Thu, 14 Aug 2008)
Log Message:
add code coverage ability to asc build.xml (clover jar and license required to run)
Modified Paths:
flex/sdk/trunk/modules/asc/build/java/build.xml

I ran into this same problem when using ProGuard 4.1 for Java obfuscation. The problem is that there is a space in the path to your JDK/JRE, for example: c:\Program Files\Java\jdk1.6.0_03. Because there is a space before the word "Files", it isn't working. The solution to to wrap quotes around that particular command-line argument. In ANT, I needed to use single-quotes (because double-quotes were already in use for the XML attribute) such as:
<java jar="proguard.jar" fork="true" timeout="30000">
<arg value="-libraryjars"/>
<arg value="'${java.home}/lib/rt.jar'"/> <!-- Notice both double and single quotes used on this line. -->
...rest of the arguments go here...
</java>
Alternatively, using ProGuard's custom ANT Task, it would look something like (notice the use of double-quotes around the rt.jar location):
<proguard>
-libraryjars "${java.home}/lib/rt.jar"
...rest of the arguments go here...
</proguard>
Anyways, I hope this helps you or anyone else who runs into the same problem. Both of these approaches have worked for me.

Similar Messages

  • [svn] 4804: Bugs: LCDS-548: add code to deal with contentType="application/ xml" with one parameter (avoid

    Revision: 4804
    Author: [email protected]
    Date: 2009-02-02 17:56:22 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Bugs: LCDS-548: add code to deal with contentType="application/xml" with one parameter (avoid
    name/value encoding in that case)
    LCDS-405: baseURL on HTTPMultiService should accept URLs which start with "/"
    Added convertParametersHandler and convertResultsHandler function hooks to RemoteObject
    to support framework code which wants to modify the service behavior.
    Moved "properties" from rpc/http/AbstractOperation to rpc/AbstractOperation so we can use
    it for customizing the handling of remote object results
    Couple of minor ASDoc fixes and one tab -> spaces change
    Doc: minor asdoc edits
    QE: LCDS QE will verify the bugs in this one
    Reviewers: Mete, Pete, Seth, Ed reviewed different parts of this checkin
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-548
    http://bugs.adobe.com/jira/browse/LCDS-405
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as

    Hello,
    How about this as an alternative:
    Use a functional global which has 3 cases:
    1. open config file - it opens the config file and reads the contents into a string (which is the functional global data), and you only do this one time at the beginning of the program.
    2. edit config data - it edits the string, which are really the contents of the file, but doesn't worry about writing to the file.  you could even get fancy here, and allow an array of tags and an array of values as input, and it would go update/edit all the tags to have the corresponding values.
    3.  close config file - it writes the current string data (the functional global data) to the file and closes it.
    Using the functions in the string palette, I think you'll find most of the code for that module/functional global will be easy to write.
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • [svn:fx-4.0.0] 13615: fix airframework/build. xml so the en_US _rb does not become corrupt when the other. locales target is run.

    Revision: 13615
    Revision: 13615
    Author:   [email protected]
    Date:     2010-01-18 20:59:14 -0800 (Mon, 18 Jan 2010)
    Log Message:
    fix airframework/build.xml so the en_US _rb does not become corrupt when the other.locales target is run.
    -removed the redundant en_US call in the other.locales target
    -added a clean for locales that will only remove the locale being built before rebuild - not all of the locales
    -add updated dita that does not contain spark references
    QE notes: 
    Doc notes:
    Bugs: no but Pete and I discussed briefly
    Reviewer:
    Tests run: doc and other.locales
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/zh_CN/docs/packages.dita

    What kind of projects are they (Struts/JSF/Hibernate)? Does the working project differ in any way with other two apps?
    What exactly is not working? Are they recognized by workshop as Struts/JSF/Hibernate app?
    Please send the .log to [email protected]

  • [svn:bz-4.0.0_fixes] 19744: Updated main build xml file to build ds-console only under sdk3 temporarily .

    Revision: 19744
    Revision: 19744
    Author:   [email protected]
    Date:     2011-01-13 11:58:13 -0800 (Thu, 13 Jan 2011)
    Log Message:
    Updated main build xml file to build ds-console only under sdk3 temporarily.
    (SDKs updated in previous CL)
    flex_sdk_3 version 3.5.0 19710
    flex_sdk_4 version 4.x-lcds-hf 19581
    Modified Paths:
        blazeds/branches/4.0.0_fixes/build.xml

    you might want to add the following to the .configure line in you pkgbuild..
    --libdir=/usr/lib/lighttpd --with-openssl=/usr/include/openssl
    This puts the libs in /usr/lib/lighttpd, much like apache does in its own dir, instead of just dumping then in the /usr/lib dir with everything else. A bit cleaner.
    Also, not sure if bzip and gzip need to be in depends line to get output compression. I will report back when I find out.
    EDIT: Made a few more modifications to lighttpd PKGBUILD and associated files. HERE

  • [svn:fx-trunk] 5473: Fix for bug around handling of constraints during and after effects were run , both for old and new effects.

    Revision: 5473
    Author: [email protected]
    Date: 2009-03-20 16:02:58 -0700 (Fri, 20 Mar 2009)
    Log Message:
    Fix for bug around handling of constraints during and after effects were run, both for old and new effects. Fix was to correctly record and handle styles that were set or not set in either state and to temporarily set width/height values for the duration of an effect if we disabled the relevant styles that affect width/height.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17809
    Reviewer: Jason
    Testing: checkintests, Mustella Effects, ListDataEffects
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17809
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.a s
    flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as

    Revision: 5473
    Author: [email protected]
    Date: 2009-03-20 16:02:58 -0700 (Fri, 20 Mar 2009)
    Log Message:
    Fix for bug around handling of constraints during and after effects were run, both for old and new effects. Fix was to correctly record and handle styles that were set or not set in either state and to temporarily set width/height values for the duration of an effect if we disabled the relevant styles that affect width/height.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17809
    Reviewer: Jason
    Testing: checkintests, Mustella Effects, ListDataEffects
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17809
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.a s
    flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as

  • [svn] 3039: Add targets for running FindBugs

    Revision: 3039
    Author: [email protected]
    Date: 2008-08-29 08:31:13 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Add targets for running FindBugs
    download from http://findbugs.sourceforge.net/
    targets assume findbugs in modules\asc\build\java\lib\tools\findbugs
    new targets:
    findbugs: run findbugs on asc source
    findbugs-report: create html report and launch gui viewer
    Modified Paths:
    flex/sdk/trunk/modules/asc/build/java/build.xml

    Revision: 3039
    Author: [email protected]
    Date: 2008-08-29 08:31:13 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Add targets for running FindBugs
    download from http://findbugs.sourceforge.net/
    targets assume findbugs in modules\asc\build\java\lib\tools\findbugs
    new targets:
    findbugs: run findbugs on asc source
    findbugs-report: create html report and launch gui viewer
    Modified Paths:
    flex/sdk/trunk/modules/asc/build/java/build.xml

  • How do I solve the following message from Code Blocks on a OS X (10.10.2): "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." ?. It appears when I try to compile any code.

    Whenever I try to compile any code the following messagem appears: "greeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."
    I'm using CodeBlocks v. 13.12. Its file (codeblocks-2.app) is inside the App folder.

    I suggest you ask whomever makes CodeBlocks.
    They would be the most knowledgeable.

  • [svn] 2785: update clover code coverage report, add tests for asc commandline arguments

    Revision: 2785
    Author: [email protected]
    Date: 2008-08-08 09:56:23 -0700 (Fri, 08 Aug 2008)
    Log Message:
    update clover code coverage report, add tests for asc commandline arguments
    Modified Paths:
    flex/sdk/trunk/modules/asc/build/java/build.xml
    flex/sdk/trunk/modules/asc/test/compiler/runtests.py
    flex/sdk/trunk/modules/asc/test/compiler/testconfig.txt
    Added Paths:
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/abcfuture.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/avmtarget.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/avmtarget.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/avmtargetn.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/avmtargetn.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/config.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/config.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/exe.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/exe.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/help1.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/help1.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/help2.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/help2.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/m.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/metadata.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/movieclip.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/sanity.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/sanity.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/show_bytes.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/show_flow.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/show_flow.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/show_instructions.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/show_parse_trees.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/show_parse_trees.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/static_semantics.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/static_semantics.err
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/swf.as
    flex/sdk/trunk/modules/asc/test/compiler/cmdline/swf.err

  • [svn] 2169: Add a new proxy adapter for code coverage.

    Revision: 2169
    Author: [email protected]
    Date: 2008-06-20 12:53:04 -0700 (Fri, 20 Jun 2008)
    Log Message:
    Add a new proxy adapter for code coverage.
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/flex/proxy-config.mods.xml

    Hello,
    I have not used a ThinkPad X1 Carbon (Type 3444-F9U) myself, but here is the configuration of the machine as it originally shipped:
    i7-3667U(3.2GHz), 8GB RAM, 180GB Solid State Drive, 14in 1600x900 LCD, Intel HD Graphics, 1Gb Ethernet, UltraNav, Secure Chip, 4c Li-Ion, Win7 Pro 64
    According to the Detailed Specifications page for this model, the unit shipped with an Intel Centrino® Advanced-N 6205S, 2×2 wireless card, and from looking the Drivers and Software page, it uses a USB 2.0 Ethernet adapter.
    Here are the various drivers for Windows 7 (x86) that I was able to locate for this model:
    Intel Chipset Support Software v9.2.0.1021
    ThinkPad Bluetooth with EDR Software v6.5.1.4500
    Lenovo USB 2.0 Ethernet Adapter Software v5.12.9
    Intel Wireless LAN Driver Software v17.0.5
    I would suggest starting with the Intel Chipset software first.  The order of the ofther software packages should not make much difference.
    Also, make sure the Wireless Radio Swich located on the Left Side of the ThinkPad X1 Carbon is enabled before installing the Bluetooth and WLAN drivers.
    One thing you might want to keep in mind is that with a 32-bit version of Windows, the operating system will only provide access to between ~3.2 and 3.5GB of the installed 8GB of RAM.  With the 64-bit version of Windows 7 that came with the unit, you will have access to the full 8GB.
    Regards,
    Aryeh Goretsky
    I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
    S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
      Deutsche Community   Comunidad en Español Русскоязычное Сообщество

  • [svn:bz-trunk] 13051: + add the connection-manager property called cookie-policy to the HTTPProxyAdapter adapter-definition designated for code coverage

    Revision: 13051
    Revision: 13051
    Author:   [email protected]
    Date:     2009-12-17 06:58:47 -0800 (Thu, 17 Dec 2009)
    Log Message:
    + add the connection-manager property called cookie-policy to the HTTPProxyAdapter adapter-definition designated for code coverage
    Checkintests: passed with 2 failures that I had prior to adding changes.  I'll dig in some more to see if I can figure out why I'm getting these failures on my Mac
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/proxy-config.mods.xml

  • [svn:osmf:] 15979: Second code submission for bug FM-760, add unit tests to increase code coverage.

    Revision: 15979
    Revision: 15979
    Author:   [email protected]
    Date:     2010-05-09 16:26:09 -0700 (Sun, 09 May 2010)
    Log Message:
    Second code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPNetStreamMetrics.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamRequest.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingFileHandlerBase .as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingIndexHandlerBas e.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingUtils.as

    Revision: 15979
    Revision: 15979
    Author:   [email protected]
    Date:     2010-05-09 16:26:09 -0700 (Sun, 09 May 2010)
    Log Message:
    Second code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPNetStreamMetrics.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamRequest.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingFileHandlerBase .as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingIndexHandlerBas e.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingUtils.as

  • [svn:osmf:] 15956: First code submission for bug FM-760, add unit tests to increase code coverage.

    Revision: 15956
    Revision: 15956
    Author:   [email protected]
    Date:     2010-05-07 10:42:13 -0700 (Fri, 07 May 2010)
    Log Message:
    First code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestDVRInfo.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastTime Trait.as

    Revision: 15956
    Revision: 15956
    Author:   [email protected]
    Date:     2010-05-07 10:42:13 -0700 (Fri, 07 May 2010)
    Log Message:
    First code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestDVRInfo.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastTime Trait.as

  • [svn] 2891: Add the web-tier compiler for J2EE to the Flex open source code base.

    Revision: 2891
    Author: [email protected]
    Date: 2008-08-19 07:35:22 -0700 (Tue, 19 Aug 2008)
    Log Message:
    Add the web-tier compiler for J2EE to the Flex open source code base.
    Added Paths:
    flex/sdk/trunk/modules/webtier/
    flex/sdk/trunk/modules/webtier/bootstrap/
    flex/sdk/trunk/modules/webtier/bootstrap/build.xml
    flex/sdk/trunk/modules/webtier/bootstrap/java/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/META-INF/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/META-INF/taglib.tld
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/default.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapBodyTag.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapClassLoader.jav a
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapFilter.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapServlet.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapTag.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/TagGenerator.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/FlashVarTa g.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/MxmlTag.ja va
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGFi lterConfig.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGHt tpServletRequest.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGSe rvletConfig.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGSe rvletContext.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/J2EEW rapper.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/FileUtils.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/J2EEUtil.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/hitachi.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/interstage.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/jrun.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/tomcat.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/weblogic.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/websphere.properties
    flex/sdk/trunk/modules/webtier/build.properties
    flex/sdk/trunk/modules/webtier/build.xml
    flex/sdk/trunk/modules/webtier/coldfusion/
    flex/sdk/trunk/modules/webtier/coldfusion/build.xml
    flex/sdk/trunk/modules/webtier/coldfusion/lib/
    flex/sdk/trunk/modules/webtier/coldfusion/lib/cfmx_bootstrap.jar
    flex/sdk/trunk/modules/webtier/coldfusion/src/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/BootstrapBodyTag. java
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/BootstrapTag.java

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • Add code to a button?

    Hi friends,
    [Apps R12]
    If I add a button to an OAF screen :
    I have no idea of how :
    - to add code when it's clicked... The idea would be to call a database procedure that receives,as parameters, certain values of that OAF screen and that returns, in an output parameter, a value to be posted in a screen field.
    Any example would be appreciated
    Thanks!
    Jose L.

    Hi
    Please first go through with OADEVGUIDE,u can download the same form meta link (Note.730053.1). and haave practice seesion with labsolutions excercise . please find a sample code below for the problem
    package oracle.apps.fnd.framework.toolbox.labsolutions.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.OABodyBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import java.sql.CallableStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import java.util.Enumeration;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    * Controller for ...
    public class EmpSearchPGLayOutRNCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("clearclearButton")!=null)
    OADBTransaction txn = getDBTransaction();
    CallableStatement cs =
    txn.createCallableStatement("begin dbms_application_info.set_module(:1, :2);
    end;");
    try{
    cs.setString(1, module);
    cs.setString(2, action);
    cs.execute();
    cs.close();
    catch (SQLException e)
    try { cs.close } catch (Exception(e) {}
    throw OAException.wrapperException(sqle); }
    }

  • System.Security.VerificationException: Operation could destabilize the runtime during code coverage run in visual studio

    I have a unit test that basically does the following:
    Creates an app domain using minimum priviledges.  The MarshalByRefObject that is living in the app domain, loads another assembly to execute.  This new assembly basically takes in a data object defined in a separate assembly, and returns a
    new data object of that type.
    All this works fine in debug mode, or when running w/out code coverage.  The Sandbox assembly is signed.
    The exception that gets thrown is this:
    Test method TestProject1.UnitTest1.TestMethod1 threw exception:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.VerificationException: Operation could destabilize the runtime.
    ClassLibrary3.Bar..ctor()
    ClassLibrary2.Foo.TestMethod(Bar testBar)
    System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
    ClassLibrary1.RemoteSandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters)
    ClassLibrary1.RemoteSandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters)
    ClassLibrary1.SandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters) in c:\users\la22426\documents\visual studio 2010\Projects\TestProject1\ClassLibrary1\Sandbox.cs: line 43
    TestProject1.UnitTest1.TestMethod1() in c:\users\la22426\documents\visual studio 2010\Projects\TestProject1\TestProject1\UnitTest1.cs: line 21
    Unit Test code:
    [TestClass]
    public class UnitTest1
    [TestMethod]
    public void TestMethod1()
    using (SandBox sandbox = new SandBox())
    string assemblyLocation = Path.Combine(Environment.CurrentDirectory, @"..\..\..\ClassLibrary2\bin\Debug\ClassLibrary2.dll");
    object result = sandbox.Execute(assemblyLocation, "ClassLibrary2.Foo", "TestMethod", new Bar() { X = "test" });
    Assert.IsNotNull(result);
    Data Object code:
    namespace ClassLibrary3
    [Serializable]
    public class Bar
    public Bar() { }
    public string X { get; set; }
    Assembly to execute code:
    namespace ClassLibrary2
    public class Foo
    public Bar TestMethod(Bar testBar)
    return new Bar() { X = testBar.X };
    Sandbox code:
    namespace ClassLibrary1
    public class SandBox : IDisposable
    AppDomain Domain { get; set; }
    RemoteSandBox RemoteSandBox { get; set; }
    public SandBox()
    var setup = new AppDomainSetup()
    ApplicationBase = AppDomain.CurrentDomain.BaseDirectory,
    ApplicationName = Guid.NewGuid().ToString(),
    DisallowBindingRedirects = true,
    DisallowCodeDownload = true,
    DisallowPublisherPolicy = true,
    //DisallowApplicationBaseProbing = true,
    var permissions = new PermissionSet(PermissionState.None);
    permissions.AddPermission(new SecurityPermission(SecurityPermissionFlag.Execution));
    permissions.AddPermission(new ReflectionPermission(PermissionState.Unrestricted));
    this.Domain = AppDomain.CreateDomain(setup.ApplicationName, null, setup, permissions,
    typeof(RemoteSandBox).Assembly.Evidence.GetHostEvidence<StrongName>());
    this.RemoteSandBox = (RemoteSandBox)Activator.CreateInstanceFrom(this.Domain, typeof(RemoteSandBox).Assembly.ManifestModule.FullyQualifiedName, typeof(RemoteSandBox).FullName).Unwrap();
    public object Execute(string assemblyPath, string scriptType, string method, params object[] parameters)
    return this.RemoteSandBox.Execute(assemblyPath, scriptType, method, parameters);
    public void Dispose()
    if (this.Domain != null)
    AppDomain.Unload(this.Domain);
    class RemoteSandBox : MarshalByRefObject
    public RemoteSandBox()
    public object Execute(string assemblyPath, string scriptType, string method, params object[] parameters)
    //we need some file io permissions to load the assembly
    new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery, assemblyPath).Assert();
    Assembly assembly;
    try
    assembly = Assembly.LoadFile(assemblyPath);
    finally
    CodeAccessPermission.RevertAssert();
    Type type = assembly.GetType(scriptType, true);
    MethodInfo methodInfo = type.GetMethod(method);
    object instance = (methodInfo.IsStatic) ? null : Activator.CreateInstance(type);
    object returnVal = null;
    returnVal = methodInfo.Invoke(instance, parameters);
    return returnVal;

    I marked the shared data library with the attributes:
    [assembly: AllowPartiallyTrustedCallers]
    [assembly: SecurityRules(SecurityRuleSet.Level2, SkipVerificationInFullTrust = true)]
    And then marked  the data class Bar with the attribute:
    [SecuritySafeCritical]
    And got a little more insight into what's going on:
    Test method TestProject1.UnitTest1.TestMethod1 threw exception:
    System.MethodAccessException: Attempt by security transparent method 'Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.Register()' to call native code through method 'Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.VSCoverRegisterAssembly(UInt32[],
    System.String)' failed.  Methods must be security critical or security safe-critical to call native code.
    Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.Register()
    ClassLibrary3.Bar..ctor() in c:\users\xxx\documents\visual studio 2010\Projects\TestProject1\ClassLibrary3\Bar.cs: line 13
    TestProject1.UnitTest1.TestMethod1() in c:\users\xxx\documents\visual studio 2010\Projects\TestProject1\TestProject1\UnitTest1.cs: line 21
    Since the injected code coverage il is doing some native stuff, it's throwing.  Any ideas on how to allow this?

Maybe you are looking for

  • I'd like Command-1, or 2-3-4 respectively, to access Tabs, do you agree?

    I'd like Command-1, or 2-3-4 respectively, to access Tabs, instead of Bookmarks on Bookmark Bar. That's how it works on Firefox 3.5.3 but Safari 4.3.4. Thus, on Firefox, Command-1 switches to the Left Most Tab, when Multiple Tabs are open. But on Saf

  • Suggestion for a photo gallery upload solution...

    Hi All i want to add a section to a site that allow users to register and then upload photos to a gallery. i needs to allow for a little bit of styling and have file size upload limits, ect. can anyone suggest / recomend either an DW extension or oth

  • How to create a repeating region like the attachements in Gmail

    I don't even know how to begin Googling or searching here for this topic. But I've got a form and I want to have two fields show up for inputting the fabric type and then the pattern name. This site will allow them to request fabric swatches to see i

  • ATI TV Wonder... not making device node?

    I purchased an ATI TV Wonder card yesterday. I've been Googling and reading numerous tutorials and I just can't get it to work. There just isn't a device node for it in /dev... no /dev/video0, /dev/v4l/video0, not even a /dev/v4l! So far, I've change

  • We could not complete your iTunes store request an unknown error occured 50

    Yeah. I got this message while I was trying to access the iTunes store and I had to wait about 10 minutes then I got this message. "We could not complete your iTunes store request. An unknown error occurred (-50). " I am on a multi-user mac mini runn