Flex4 ant task command line

Buongiorno, ho necessità di eseguire un template html all'interno di un pc senza la rete.
Se compilo un semplice file prova.mxml, con il flex command line, ottengo un file prova.swf, che cerca di connettersi all'url http://fpdownload.adobe.com/pub/swz/tlf/1.0.0.595/textLayout_1.0.0.595.swz e quindi va in errore il template html.
Se compilo con il flex builder, ho notato che viene creato il file text_layout_*.swf .
è possibile compilare l'swf con il corrispettivo text_layout.swf anche dall'' ant task command line?
Grazie

The only way I know of is using properties
<project name="foo">
<property name="foo" value="bar"/>
<echo>${foo}</echo>
</project>
ant
[echo] bar
ant -Dfoo=baz
[echo] baz

Similar Messages

  • How to run Ant from command line in Tarantella env?

    I am getting Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher error message when I run Ant from tarantella command line. Is this Ant version issue? I can only find Ant with version 1.4.2. Where can I find the correct Ant version (1.6.5) and what class path do I need to specify if I want to run Ant from command line. This works if I run Ant inside of Jdeveloper 11g.
    thanks

    Hi
    What is the correct Java version? What are the steps to rectify the problem?

  • Ant: how to get command-line argument?

    When using Ant to build Java source files, what is the syntax of obtaining command-line argument in build.xml?

    From the documentation:
    http://ant.apache.org/manual/running.html#libs
    Examples
    ant
    runs Ant using the build.xml file in the current directory, on the default target.
    ant -buildfile test.xml
    runs Ant using the test.xml file in the current directory, on the default target.
    ant -buildfile test.xml dist
    runs Ant using the test.xml file in the current directory, on the target called dist.
    ant -buildfile test.xml -Dbuild=build/classes dist
    runs Ant using the test.xml file in the current directory, on the target called dist, setting the build property to the value build/classes.
    ant -lib /home/ant/extras
    runs Ant picking up additional task and support jars from the /home/ant/extras location
    steps:
    - You define a property (like ${my.prop}) in your build.xml
    - You define it in the command line, like
    ant -Dmy.prop=chosen_value compile
    where "compile" is the target and "-Dmy.prop=chosen_value" defines the value of the property "my.prop" as "chosen_value".

  • How  to genearte Unit Test reports  through  ANT/Command  line ?

    Hi,
    I am using sql developer unit test feature to test my database code. I am planning to execute and generate reports by running ant script.
    Is it possible to get the unit test results in any format (text,XML,HTML) after running the tests.
    How to integrate report generation tasks as part of Automated builds?
    Is there any command line utility do through can invoke through ant task?
    Thanks,
    Fernando

    Fernando,
    I, too, am looking to run our PL/SQL unit test suites through our automated ant build scripts. Currently, I've only been able to determine that there is a "UtUtil.bat" and "UtUtil.sh" command line utility for win and linux in /sqldeveloper/sqldeveloper/bin. However, it only take three switches:
    UtUtil -run ?
    UtUtil -imp ?
    and
    UtUtil -exp ?
    While this does provide some limited value to us through automating the importing of our exported test suites and then running them as part of our builds, it doesn't help in running reports on the test runs and exporting the reports to something our build processes can consume (i.e. xml).
    Also, we want to be able to run our full db build on (almost) any of our development machines and we don't want to have to have a unit test repository already preconfigured on each development db. I haven't found a utility to automate the creation of the unit test repository user and the repository, and then whena all the test suite runs have finished and the reports run, delete the repository and repository user.
    We have used Quest's Code Tester product in the past and it had all of these great features that I am really hoping Oracle can either implement or expose to us.
    Regards and best of luck,
    Mike Sanchez

  • Ant tasks for portal's dpadmin and par commands

    Has anyone written ant tasks for the dpadmin and par commands? If you look at the shell scripts for dpadmin and par, they are just setting up environment for java method invocation and command-line parsing.

    I created some simple targets to deploy my portlets (copy jsp files and classes to appropriate directories) and the declare them with a target that invoked the dpadmin tool on my desktop xml file. I had experimented around with changing the directory priviledges in order to run my build script as a user other than root but had little success. I am sure building a custom ant task wrapped around dpadmin and par commands would be trivial to implement.

  • Ant deploy from Jdev works fine - same ant deploy from command line fails

    Hi
    I'm using Jdev 10.1.3 and OAS 10.1.3 and created some web services. I can deploy using the Wizard in JDev - works fine, created a build.xml file using the <oracle:deploy> ant task. Also work fine from JDeveloper.
    But when running from command line (windows) I get the following:
    d:\>ant deploy
    Buildfile: build.xml
    init:
    compile:
    copy:
    ear:
    [war] Building war: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    [war] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task)
    [ear] Building ear: D:\invision\source\INVisionWebService1013\deploy\INVisionWebService.ear
    [delete] Deleting: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    deploy:
    BUILD FAILED
    D:\invision\source\INVisionWebService1013\build.xml:282: The following error occurred while executing this line:
    jar:file:/D:/apache/apache-ant-1.6.5/lib/ant-oracle-classes.jar!/oracle/antlib.xml:27: taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found
    I have studied the web for suggestion also http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14431/anttasks.htm#sthref164 but nothing seems to work. Tried copying oracle jars to my ant directory (ant version 1.6.5) but still no success (above error message disappered but other came instead).
    Why must this process be so complex. Can anyone help?

    Hi,
    You need to have the following jars in your classpath before firing the ant deploy task.
    ${Oracle_Home}\j2ee\utilities\ant-oracle-classes.jar;
    ${Oracle_Home}\j2ee\home\lib\adminclient.jar;
    ${Oracle_Home}\2ee\home\lib\oc4j-internal.jar;
    ${Oracle_Home}\j2ee\home\lib\javax77.jar;
    ${Oracle_Home}\j2ee\home\lib\javax88.jar;
    ${Oracle_Home}\j2ee\home\lib\jmxri.jar;
    ${Oracle_Home}\OracleAS_1\webservices\lib\wsa.jar;
    Please check your classpath and add the above jars, if not present and try ant deploy task now.
    I suppose it should work fine.
    Hope its helpful.
    Rgds,
    Prashanth Babu.

  • Using computer variables in task sequence "Run Command Line"

    I am attempting to deploy VMs through VMware's vRealize Automation tool using CM. The process creates a CM computer object then creates a direct rule on a CM collection for the new computer object. During the creation of the computer object vRA creates computer
    variables provided by me on the computer object. I see the computer object built and i see the custom variables on the computer object:
    Name Value
    dns1 10.10.10.10
    dns2 10.10.10.11
    gateway 10.10.10.1
    ipAddress 10.10.10.2
    netMask 255.255.255.0
    In the task sequence the last step is to "Run Command Line":
    cmd /c netsh int ip set address name="Ethernet0" static %ipAddress% %netMask% %gateway% & cmd /c netsh int ip set dns name="Ethernet0" static %dns1% & cmd /c netsh int ip set dns name="Ethernet0" static %dns2% index=2
    When the TS gets to that step it doesn't substitute the variables in the command with the computer variables listed above. Looking at the smsts logs after the deployment is complete I see lines stating:
    Set Command Line:...
    Start executing command line:...
    Executing command line:...
    ProgramName = ...
    All of those lines show the command exactly as it is above with the %variables% intact.
    The command immediately fails with the error:
    Invalid address parameter (%ipAddress%). It should be a valid IPv4 address.
    Does anyone have a suggestion on why the TS isn't using the variables? I found this article https://technet.microsoft.com/en-us/library/bb693541.aspx but its for 2007 not 2012. I wasn't able to find something comparable for 2012.

    I don't know why anyone here thinks you *need* sccm osd to achieve fully automated customizations.
    Customer selects base image (2008 r2 core, 2008r2 gui, 2012 r2 core, 2012 r2 gui), which should be thin and with zero customizations anyway,
    vaai accelerated clone creates vm,
    ip addr/gateway/dns config is injected with powercli,
    customers config management engine agent of choice is installed via powercli script injection/execution (we have puppet users, ConfigMgr users, saltstack users, IEM users, Cheff users),
    the clone completes in ~2 minutes and a VM is presented to the customer in less than 5 minutes 
    Deploying windows VMs via SCCM OSD is not only slow, but requires dev work on the customer side to get things rolling which wastes everyone's cycles including your own

  • Mdt 2012 sp1 command line does not run from task sequence

    Hi,
    I am hoping I can explain this correctly.  I am using MDT 2012 and having an issue with running command lines, powershell and batch files that I setup.
    The task sequence is set to use an account called "MDTService".  it has rights to join the domain but is not in the local admin group of the reference image.  a domain GPO renames the local admin account CoAdmin.
    when running a command line to, for example, run xcopy a folder and subdirectories to the "program Files x86" directory, it does not copy.
    When I log on to the system and use an admin account to manually run the command I do not have an issue.  if I log onto the system with the MDTService user and run it, it fails.
    How do I get the commands to run from the MDT task sequence?  I do not want to make the MDTService user an admin.  I have tried the run as option in the task sequence but that did not work.  maybe is set it wrong.  I used a domain\Admin
    account which did not work.
    what can I clarify or logs can I post to provide more details.
    Thanks in advance.

    Any account that needs to add files under %ProgramFilesx86% must be granted administrative privileges.
    Keith Garner - keithga.wordpress.com

  • How to Invoke tasks created in FrameMaker Publishing Server from the Windows command line

    Hi All ,
    i would like to know how can we Invoke tasks and schedules created in FrameMaker Publishing Server from the Windows command line.
    we used publishing server mainly to convert Frame maker files into PDF and that should be do progarmatically without manual intervention on Demand.
    so could you please let us know how can i invoke rthe task creted to convert FM file to PDF in FrameMaker Publishing Server from the Windows command line.
    please let me know the command to execute .
    thank you and waiting for valuable response.
    best regards
    Ramesh babu

    Please see http://blogs.adobe.com/techcomm/2011/03/adobe-framemaker-server-10-and-its-command-line-ca pability.html for the same.
    Harish Dhawan

  • How to pass command line parameters in calling ant file

    Hi All, I m using a Build file which calls another build file.
    That build file is run from the command prompt by give ant -lib <path of jars it needs for executing>.
    Now i m calling this file from main build file but it does not work as i m not able to set <b>-lib </b>.
    Pls can anybody let me know how to set such command line parameters to call the build file in ant script.
    Thanks in Advance.
    Ketan.B.Parekh

    Create the control file dynamically (and fill one of the columns with the file name as a constant) before you start SQL*Loader
    Another option is to use external tables
    Re: Data Loading
    Message was edited by:
    Jens Petersen

  • Perform NetBeans build steps from command-line using Ant

    If I build a project using NetBeans, it creates the lib directory and populates it with dependant .jar's. It also puts the class-path in the manifest file.
    If I build using Ant ("ant jar" from build.xml folder), it creates the .jar without the class-path and without the lib folder.
    I want to build a simple project from the command-line, using Ant (or anything else that can process the build.xml file without having to modify it outside of NetBeans), and have it produce the same output as NetBeans.
    The project is a simple Swing app.
    How do I do it?

    Yes, I'm aware of that - there doesn't seem to be much participation in the NetBeans forum. I did actually ask the same question there with no (timely) response, so I thought I'd ask here as there seems to be far more people here who could answer my question.

  • Task Sequence Command Line to Unregister DLL Not Working...Won't Run As Administrator

    Hi All,
    I'm trying to unregister a dll by creating a Custom Task Sequence using the command line "%SystemRoot%\System32\regsvr32.exe" /s -u "%CommonProgramFiles%\Microsoft Shared\VGX\vgx.dll"
    SCCM is reporting success, however the DLL isn't being unregistered on the client machines.  If I manually run the command on a client machine as administrator it works.  I have specified that same administrative user in the Custom Task Sequence. 
    These are Windows 7 machines, so my hunch is it has something to do with UAC, but I'm kind of stumped what to do here but feel like I'm missing something obvious.
    Thanks!

    Thanks again Jason for sticking with me here.  We are running this on 64-bit Windows.  Okay, I fixed the command line so it now is: %windir%\sysnative\regsvr32.exe /s -u "%CommonProgramFiles%\Microsoft Shared\VGX\vgx.dll"
    Once again, SCCM shows it successfully executed the task sequence, however the dll still didn't unregister.
    Any other ideas what might be going on?  I really appreciate the help.
    Here are the events for the advertisement from old to new in case they help:
    Program started for advertisement "SEA2011B" ("SEA000E8" - "*").
    Command line: "C:\Windows\SysWOW64\CCM\TSLauncher.exe"
    Working directory: C:\Windows\system32\
    User context: NT AUTHORITY\SYSTEM
    The task sequence execution engine started execution of a task sequence.
    The task sequence execution engine successfully completed the action (Run Command Line) in the group () with exit code 0
    Action output: =======================[ smsswd.exe ] =======================
    PackageID = ''
    BaseVar   = '', ContinueOnError=''
    SwdAction = '0001'
    Command line for extension .exe is "%1" %*
    Set command line: Run command line
    Working dir 'not set'
    Executing commandline: Run command line
    Process completed with exit code 0
    Command line returned 0.
    The task sequence execution engine successfully completed a task sequence.

  • Regkey Import via task sequence using command line. Running directly from DP.

    I have a package that is going to run straight from the dp called JAVAHOME. Inside this package there is a regkey called JAVAHOME.REG
    If I want to run it as part of a task sequence using a command line.
    The run a command line step has use package called JAVAHOME checked.
    Now to import it, in run a command line I use
    cmd.exe /c reg.exe import javahome.reg
    or
    cmd.exe /c reg.exe import .\javahome.reg
    I always get it wrong when running things directly from the DP.

    To be sure about the behavior, I would use a batch file and use the %~dp0 variable. So, the command line in the batch file would be something like
    reg.exe import %~dp0javahome.reg
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Schedule a task on window 7 command line for running a Python script

    I have a Python script.
    1. if I directly run it on the command line: python pythonscript.py it is working.
    2. I want to run it every 30 minutes, I created a schtasks like this:
    2.1 schtasks /create /tn "myTask" /tr "C:\python27\python.exe Path_to_Python_Script" /sc minute /mo 30 /st 08:03
          the schtasks itself was created successfully and I think the task was run but I did not see any result come out.
    2.2 schtasks /create /tn "myTask" /tr "python pythonscript" /sc minute /mo 30 /st 08:03 (schtasks command is on the directory of pythonscript)
       the schtasks itself was created successfully and I think the task was run but I did not see any result come out.
    2.3 schtasks /create /tn "myTask" /tr "myscript.bat" /sc minute /mo 30 /st 08:03 (schtasks command is on the directory of pythonscript and myscript.bat and in the myscript.bat, I have one line code: python pythonscript)
       the schtasks itself was created successfully and I think the task was run but I did not see any result come out.
       How if I do: Cuurent directory>myscript.bat (then enter) OR myscript(then enter), it runs and get the result.
    Question: Why the task scheduled can not have result come out?
    Thanks.

    Hello,
    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
    Since your post is off-topic, I am moving it to the
    off topic forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Line numbers in JWS classfile generated by jwsc Ant task

    Does anyone know how to get the jswc ant task to add line number attributes to JWS class file that it generates. When I try to use Eclipse to set a breakpoint in the service code I get a pop up that states
    +"Unable to install breakpoint in.....due to missing line number attributes. Modify compiler option to generate line number attributes"+
    I looked at the documentation for jswc and I dont see any options that can be passed to the java compiler.
    Karl

    Pls set debug attribute of JWSC ant task to true or on, e.g.
    <jwsc srcdir="." destdir="${output.dir}" debug="on" keepGenerated="true">
              </jwsc>

Maybe you are looking for