MXMLC Source Path Question

I am new to doing batch Flex compiles. This is my first
attempt. When specifying -sp on the command line the documentation
clearly states that you can use wildcards to indicate use the
specified directory and all subdirectories. I cannot seem to get
this to work. I have tried many ways to do this including
-source-path+=com/* or -source-path+=com/*.* etc. All I get is an
error message indicating unable to open file "com/*" or unable to
open file "com/*.*" (I have also tried to specify the entire path -
c:/ ......)
Note: I have set the current directory to a specific location
and access the compiler by specifying its path
(\flex_sdk_2\bin\mxmlc.exe)
1. What is the correct format for specifying wildcards on the
command line?
2. Is it true that -sp is relative to the current directory
and not the compiler directory?

Turns out I had to use the following command:
mxmlc -compiler.source-path=.\src -static-link-runtime-shared-libraries=true .\src\com\foobar\foo.as -output .\test.swf
Do I understand why? No, not really. A coworker helped me for a while. Hope this helps anyone who has the same problem in compiling an actionscript package.

Similar Messages

  • Ant question: difference btwn source-path/compiler-source-path/include-libraries

    I have a few questions about build.xml include/lib directories (questions in xml file)
    <mxmlc>
    <source-path="../frameworks"/>
    <compiler.source-path path-element="path to include actionscript include similar to c include"/>
    <compiler.include-libraries dir="${basedir}">
        <include name="I have no idea what this is. Does flex generate binaries similar to how c compilers generate .so or .dll?"/>
    </compiler.include-libraries>
    </mxmlc>
    1. What's the difference between source-path and compiler.source-path
    2. So what exactly is a compiler.include-libraries?  Just curious what produces a library.
    I've had success accessing actions script files that reside in other directories using compiler.source-path but not source-path.  Any help appreciated
    Regards,
    Monty

    I have a few questions about build.xml include/lib directories (questions in xml file)
    <mxmlc>
    <source-path="../frameworks"/>
    <compiler.source-path path-element="path to include actionscript include similar to c include"/>
    <compiler.include-libraries dir="${basedir}">
        <include name="I have no idea what this is. Does flex generate binaries similar to how c compilers generate .so or .dll?"/>
    </compiler.include-libraries>
    </mxmlc>
    1. What's the difference between source-path and compiler.source-path
    2. So what exactly is a compiler.include-libraries?  Just curious what produces a library.
    I've had success accessing actions script files that reside in other directories using compiler.source-path but not source-path.  Any help appreciated
    Regards,
    Monty

  • Error: A file found in a source-path must have the same package structure

    I use Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16032,I have a file,named CustomGraphContainerController.as,it's directory is c:\controllers,and the GCController.as file is under the same directory,CustomGraphContainerController.as file like follows
    package controllers{
    import ui.GraphControlContainer;
    public class CustomGraphContainerController extends GCController {
      public function CustomGraphContainerController(a_graphControlContainer:GraphControlContainer) {
       super(a_graphControlContainer);
    Then I want to use mxmlc command to compile it,like follows:
    C:\>mxmlc c:\controllers\CustomGraphContainerController.as
    But it raise compile errors,like follows:
    Loading configuration file C:\sdk\frameworks\flex-config.xml
    C:\controllers\GCController.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'controllers'.
    I don't know how to compile the as file with package controllers? Where is wrong? How to use mxmlc to compile it?
    Thanks

    HI,
         You should have one main application class to compile this as code to swf.. So that main application path should be in your proper package structure.. then you can compile you app and as files also...
    Thanks
    Ram..

  • Configuring Doc Path (and Source Path) for default JDeveloper library

    hi
    Sometimes a default JDeveloper library as no Doc Path (or Source Path) configured.
    Adding a project library with only a Doc Path (or/and Source Path) configured (so no Class Path) can make the relevant API documentation more easily available in JDeveloper,
    see http://www.consideringred.com/files/oracle/img/2011/library-doc-path-20110529.png
    - (q1) Why has the "WebLogic 10.3 Remote-Client" library no Doc Path configured by default?
    - (q2) Are somehow/somewhere source files available (maybe only of "API related"/non-implementation classes) for the "WebLogic 10.3 Remote-Client" library, so these can be configured in a library Source Path, to make the API documentation even more easily accessible in JDeveloper?
    many thanks
    Jan Vervecken

    Thanks for your reply John.
    John Stegeman wrote:
    ... At least some of the classes' javadocs are [url http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13941/toc.htm]here ...
    As I write in my initial post, I am able to add a project library with only a Doc Path configured (as shown in library-doc-path-20110529.png),
    to "Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.5) Part Number E13945-05 "
    at http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13945/
    So, questions (q1) about a default Doc Path configuration and question (q2) about source files (similar to ADF) remain.
    regards
    Jan

  • Install 11gR2 RAC Database Problem: Invalid source path /.../Datafiles

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have just finished installing Grid infrastructure and start to install RAC database 11gR2.
    I have downloaded 2 files from https://edelivery.oracle.com as below:
    V17530-01_1of2
    V17530-01_2of2
    When I start to install the RAC database using the above 2 files but get the error below:
    [ora11g@rac1 V17530-01_1of2]$ ls
    database
    [ora11g@rac1 V17530-01_1of2]$ cd database
    [ora11g@rac1 database]$ ls
    doc install response rpm runInstaller sshsetup stage welcome.html
    [ora11g@rac1 database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking Temp space: must be greater than 120 MB. Actual 5028 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 2224 MB Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-03-06_11-08-23AM. Please wait ...
    Invalid source path '../stage/Components/oracle.jdk/1.5.0.17.0/1/DataFiles' specified for unzip. Unzip command failed. Please check oraparam.ini and specify a valid source path.
    : No such file or directory
    [ora11g@rac1 database]$
    As we see the output above, the error is Invalid source path /../stage/Components/oracle.jdk/1.5.0.17.0/1/DataFiles.
    My questions are:
    First, are the files V17530-01_1of2 and V17530-01_2of2 the correct files for 11gR2 RAC database ?
    Second, how to solve the issue "Invalid source path /../stage/Components/oracle.jdk/1.5.0.17.0/1/DataFiles" ?
    Thanks.

    Folks,
    Hello. thanks a lot for replying.
    I go up one level ( / ) and run the command again as below:
    [root@rac1 /]# du --max-depth=1 -h
    Its output:
    8.0K ./srv
    83M ./sbin
    9.0G ./tmp
    4.9G ./usr
    157M ./var
    20M ./boot
    8.4M ./bin
    3.3G ./u01
    252M ./lib
    8.0K ./selinux
    12K ./mnt
    16K ./lost+found
    164M ./dev
    0 ./misc
    29M ./lib64
    8.0K ./u02
    100K ./tftpboot
    12K ./media
    0 ./proc
    248K ./root
    0 ./sys
    117M ./etc
    3.3G ./home
    3.5M ./opt
    25G .
    [root@rac1 /]#
    As we see the output above, it seems that 25GB disk space is used and /tmp occupies 9GB.
    I have remove the files under /tmp but after reboot OS, the same files come up again under /tmp.
    Some folks use 12GB for each of their VMs and is enough to install Grid and RAC Database.
    My questions are:
    Why my VM with 30GB disk space does not have enough disk space to install RAC database ?
    Can any folk help to solve the issue ?
    Thanks.

  • Difference between compiler.source-path path-element="" / & source-path path-element="" /

    Hi guys,
    I am not able to understand few differences when i am trying to compile my flex project using ANT. In the adobe resource i can see lots of places they mention as "compiler.source-path path-element="" "
    And lots of places i use as <source-path path-element="" />. Can anybody give a better explaination about this.
    The below example you can see there are lot of places where they used the attribute as compiler. & some places direct name
    <?xml version="1.0" encoding="utf-8"?>
    <!-- myMXMLCBuild.xml -->
    <project name="My App Builder" basedir=".">
        <taskdef resource="flexTasks.tasks" classpath="${basedir}/flexTasks/lib/flexTasks.jar" />
        <property name="FLEX_HOME" value="C:/flex/sdk"/>
        <property name="APP_ROOT" value="apps"/>
        <property name="DEPLOY_DIR" value="c:/jrun4/servers/default/default-war"/>
        <target name="main">
            <mxmlc
                file="${APP_ROOT}/Main.mxml"
                output="${DEPLOY_DIR}/Main.swf"
                actionscript-file-encoding="UTF-8"
                keep-generated-actionscript="true"
                incremental="true"
            >
                <!-- Get default compiler options. -->
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                <!-- List of path elements that form the roots of ActionScript
                class hierarchies. -->
                <source-path path-element="${FLEX_HOME}/frameworks"/>
                <!-- List of SWC files or directories that contain SWC files. -->
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="../bundles/{locale}" />
                </compiler.library-path>
                <!-- Set size of output SWF file. -->
                <default-size width="500" height="600" />
            </mxmlc>
        </target>
        <target name="clean">
            <delete dir="${APP_ROOT}/generated"/>
            <delete>
                <fileset dir="${DEPLOY_DIR}" includes="Main.swf"/>
            </delete>
        </target>
    </project>

    I know that Oracle has been putting work into improving the performance of XMLTable and XQuery and that is their direction for what we as developers should be using in our code. I've yet to write any production code like your query 2 but I agree with you that they should be equivalent. For a quick and dirty test, you could simply do an explain plan on both queries and see if they come out similar. As always, an explain plan does not mean that is exactly what Oracle will run during execution, but it is close enough for most situations.

  • TED chained applications with same source path produce large distribution file

    Hello,
    after using an application successful in my central location I want to
    distribute it - what's the problem: The application itself contains 13
    simple msi installations as dependent....
    So what happens: The source path contains 13 msi files, the
    distribution file contains all files for every application...even if
    they are the same...
    I was curious about not getting the gather finished, instead I got a
    "volume almost out of space" message.
    My question: Is this working as designed, will it be changed (it doesnt
    make sense to distribute the same files multiple times...), is it a bug
    only?:)
    I'm going to put the msi into different subfolders now (change of
    source path, origin path is needed too...) - I think this would work
    well as a workaround, however I would like to know if it's designed
    that way - so you have to take care not to share any folders or
    subfolders...
    Thx in advance
    Dirk
    ObiwanRedN

    Jared,
    hard to get right now..had to remove the old apps...
    Trying to explain short:
    - 13 small msi install applications, every source in a different folder
    now
    - "package" application (call it "PACKAGE")-> associated to selected
    workstations (or ws group), start menu/desktop to do a manual install,
    this app doesn't do anything except having the 13 dependent
    applications
    - "update" application (thats what I named "3rd"...sorry for the
    confusing name;))-> associated to all workstations, set to force run if
    special conditions are met (so something showing one of the partial
    apps is outdated, the partial app will have a new version number
    assigned). This application had the dependent app "PACKAGE" -> worked
    fine in local distribution but would start to distribute the apps 1-13
    again....(?not sure)
    Finally I came to a general conclusion: If you have some special basic
    application (lets say dot-net 3.0, 2.0 etc..., a special patch) that
    might be required for different applications -> it's not a good idea to
    use msi for this one because it will distribute with every app using it
    as a dependent app. I will go to distribute file sources, the app calls
    msiexec so nothing will be distributed for this part...
    Hopefully I explained somewha better...(?)
    Thx in advance
    Dirk
    ObiwanRedN

  • Data Source path in Pivot Table changes to absolute on its own

    Hello.
    I have a .XLSX file, that was created long time ago (I don't even know in which Office version, but definitely not 2013), and maybe even was a .XLS file at first.
    So it's a 4 MB file with 16 Sheets and 8 Pivot Tables.
    All of the Pivot Tables use other sheets from the same file as Data Source.
    Data Source for some of them look like this: 'Sheet3'!$A:$E
    Everything is fine when I save the file, and open it from saved file. 
    But as soon as I try to move the file elsewhere, or rename it, or email it - all Data Source paths change to something like this: '\Users\Sergii_Litnevskyi\Desktop\New folder\[FileName.xlsx]Sheet3'!$A:$E
    And it happens with all Pivot Tables. The problem is that it links to an old file path, where the file does not exist anymore. And it links to an external file, which is not what I want.
    If I Save As and select different path and filename - then it works fine. So it's a workaround for renaming and moving files, but not for sending them to other persons.
    I've read some threads, and people recommend disabling "Save external link values", but it does not help. It is already turned off in my office, but it keeps acting weird. 
    So what I need is: Save the file, close it, rename it, move it to other place, send it over email as attachment. And then I want to have the same Data Source path in my PivotTables as I had before I saved the file. How can I do it?
    My Office version: Microsoft Excel 2013 (15.0.4454.1503) MSO (15.0.4517.1005) 32-bit

    Hi,
    According to your description, I suppose the issue may be caused by some reason.
    Do you link the outside data source?
    I think if the file moves the file elsewhere, or renames, or email,
    data source paths can’t be change.
    But, your data source paths add the absolute path.
    Do you link the outside data source?
    I recommend you zip the file and send it as Email attachment.
    If the issue exists, you may save as it in a new name and test it in another computer.
    Regards,
    George Zhao
    TechNet Community Support
    I am pretty sure that I don't have any external links in the document.
    However, even if I did - why would it change Data Source path for all of the Pivot Tables, when I did not request it?
    I tried zipping it and sending to other person over email, but he got the file with changed data source paths.
    I can even record a short video to show what happens.
    Actually, I just did it. You can see the video here: http://screencast.com/t/qMBild3ck9b
    It is rather big - 23.8 MB.
    Let me explain what I showed there:
    I opened my original file. I showed that there are Pivot Tables, whose Data Sources are in the same file, on various other sheets.
    I showed this for all of the Pivot Tables in the document.
    I saved the file using Save As in a different folder and under a different name (TEST.xlsx).
    I then opened that saved file to show you that it is fine, and the Data Source path for one of the Pivot Tables is the same as it was in original file. It is the same for all of the other Pivot Tables.
    Then I closed, and simply renamed the file to TEST123.xlsx.
    Opened it, and first thing wrong - Security warning.
    Then I got ‘Cannot open PivotTable source file ….’ messages. And, as I showed, now all Data Source paths have been changed to full paths of the file, that was created by Save As (TEST.xlsx) from original file.

  • How do I use a OS (Windows) Environment Variable in the source path of me ActionScript 3.0 settings

    I'm sure this can be done as I know we used something similiar at my old work place, below is an image showing what I am attempting to do.
    We used this to create more portable / shareable assets files which when symbols are linking to code, the code was very often in different directories on different machines.
    So we had set up environment variables in the OS to point to source directories and then used these variables in the source paths.
    As long as everyone had these variables set up then it would all work.
    Anyone know the correct way to do this in Flash CC
    Thanks in advance!
    Best Wishes
    Rhys Thomas

    sinious the problem with doing that is that the changed path gets into the code repository as well, so you wind up with everyone going back and forth changing it to their own value, which is a hassle. If you use relative paths and a standard project setup, then it all "just works" without a problem.
    For example, this is the setup I use:
    .dev
         .thisProject
              .Flash1
                   Flash1.as
                   .Flash1
                        Flash1.xfl
                   .view
                        .audioAssets
                        .customViews
              .SoundLib
                   SoundLib.xfl
              SoundLib.swc
         .bin <swfs are output here
              .xml
         .core
              .control
              .model
              .service
              .view
    We have a "base project" that you check out to start a new project (we do heaps of similar work), and the paths are already set up to be relative. Having each project point to its own copy of the core code allows for fine-grained control of which revision you're using--we've even pointed deliberately to old versions or branches on rare occasions.
    The bin folder is actually shared with the website repository, which is in a different directory from the Flash source code (in the website, it has a different name). This allows the generated swfs to be easily updated and ensures that the latest XML is being used both for development and on the site.
    The "thisProject" folder actually includes a Flash Builder workspace with all the standard shortcuts, etc., already set up. This is primarily because of how the "default path" works when you create a new Flash Pro project in FB. Because we output a level up from the workspace, we hack the .metadata folder every time, but that's a small change.

  • How to use variable in source path of an image  in flex

    hello
    i just want to know that how to use variable in source path
    of an image in flex

    I am doing exactly that with data binding at the moment. This
    is my Image element
    <mx:Image width="50" minHeight="50" height="76"
    source="{Application.application.parameters.api}/rest/entity/{data.Slug}/Image"
    />
    Note the curly brackets
    HTH
    Pat

  • Source paths with same folder name ?

    Hello Forum
    I am using Flex Builder 3 to build an actionscript application.  I have added a few external packages that I use on a regular basis on a separate location on the harddrive so that in the future multiple apps ideally could reference to them.  Now the problem is that my current project sits in a 'com.projectname' folder and one of the external packages also has a 'com' folder.  FB seems to get confused and doesn't recognize the latter after I've added the source path in the project properties menu (under Actionscript Build Path).
    Any insight appreciated.
    Thank you.
    sk

    If you could replicate the issue with a "minimal" application and share the code, an answer should be fairly easy to provide.

  • Get source path of .ai file`?

    Hi!
    Have searched but i cant find a good way of retrieving the source path of the current .AI file. Is it possible?
    IE: If i am working with a file in C:\adobe\Illustrator\beautifulfile.ai i want a function that retrieve C:\adobe\Illustrator\
    // Clint

    your example C:\adobe\Illustrator\beautifulfile.ai
    Well, try this:
    alert(app.activeDocument.fullName.parent.fsName);  // = C:\adobe\Illustrator
    or (if last backslash is really needed):
    alert(app.activeDocument.fullName.parent.fsName + "\u005c");  // = C:\adobe\Illustrator\

  • Is there a way to exclude files from source paths using patterns

    Hi
    Does anyone know of any way to exclude files from source paths using patters rather than individually selecting the files? UI doesn't allow to specify any pattern. But if you look at the jpr file there are other places where patterns are allowed. Can the same pattern be copied and applied to excluded files?
    Pat

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • Scan source paths... and performance.

    In another thread,
    Struts Page Flow Editor Unusably Slow
    poor performance turned out to be due to a problem with having 'Scan source paths to determine project contents' enabled.
    Apart from the problems with the diagrammer, this manifested itself as jdev using 100% cpu for periods of anything from 1 to lots of seconds.
    There are lots of other (generally intermittent) occasions where jdev temporarily locks up using 100% cpu. A regular one is for the component palette to appear/disappear when switching between a jsp and a java file. A more intermittent one is just waiting for the text to appear in a menu or dialog box (ie the new 'window' appears as blank and you can't do anything for a variable period until the text appears.)
    I shall watch these to see if disabling source scanning helps these as well.

    Hi,
    I've got the problem with permanent scanning the source files after I created a "Web Service Proxy". After I closed and restarted JDeveloper I got an OutOfMemory exception at startup. The only thing helped was to delete the whole JDeveloper profile.
    I hope this helps to analyze the problem.

  • 9.0.3 scan source paths: how to control which files are picked?

    Using 9.0.3 Preview. I've been waiting for the "scan source paths to determine project contents" feature, but I'm running into problems with this:
    * It's picking up "Packages" called com.mycompany.CVS, with "files" called Entries, Repository, etc. It messes the display (making it contain twice the number of entries that I'd like it to show).
    * Also, there's no way to exclude certain files or directories from the list (or is there?). I happen to have a few .jsp files lying around which are copied (by our Ant build.xml) to their proper location - but the build insists on compiling these .JSP files, and worse, spits out the error:
    Error: JSP files must reside in the server root directory or a subdirectory beneath it
    What the heck does this mean?
    How do I get around these problems?
    Shankar.

    Hi,
    You can quickly create a project based on a directory (e.g. the sourcepath) and its (filtered) contents using the New Project from Existing Source wizard in the New Object Gallery (from File->New...). If you're not too bothered about the project being dynamically updated with changes on the filesystem, you may find this solves your issue.
    However, I do agree that there should be some access to filtering for "dynamic" projects. I've logged the following bug against JDeveloper's SCM support (incl. CVS):
    2552750 DYNPRJ: WE SHOULD USE THE DYNAMIC PROJECT FILTER API FOR SCM FILES
    to support filtering out SCM control files (such as Entries, Root etc.) and the following ER against the IDE:
    2552763 DYNPRJ: PROVIDE UI SUPPORT FOR FILTERING
    to provide UI for filtering in a dynamic project.
    Both the bug and ER are published, so you can track their progress on metalink.
    Thanks,
    Brian
    JDev Team

Maybe you are looking for