Count files in JDeveloper

I need to count files in all workspace. For example. I need to know how many jsp files are. Or how many .js files are.
Do you know how can I do this easier?

Hi,
there is no such functionality in JDeveloper
Frank

Similar Messages

  • Create an XML file from XSD file in JDeveloper

    Hi,
    I am working on XML DTD and XSD to validate xml file using JDeveloper.
    1. How we can create xml file from XSD in JDeveloper.
    2. How to design content model very easily..
    3. where can I learn XSD easily.. any URL
    can anyone help out..
    with regards
    Abu Sufian

    The XML node in the new gallery has an option to create XML document from schema
    See this demo:
    http://www.oracle.com/technology/products/jdev/viewlets/1013/xml_viewlet_swf.html
    There are several places on the Web that teaches XSD
    for example: http://www.w3schools.com/schema/

  • How to get built.xml for ear file in jdeveloper?

    Hi,
    I am using JDeveloper to create EAR file for my ADF Fusion Application. I think Jdeveloper use ant to create EAR file. I know how to get built.xml for my war file.
    Can anyone tell how to get that built.xml that create EAR file in Jdeveloper.?

    This blog explains:
    http://adfhowto.blogspot.com/2011/03/ojdeploy-deploying-adf-application-from.html
    Based on the blog, I simply copied an existing project "deploy" target definition and augmented the project's build.xml with a new target "deployApp" that omits the Project parameter to ojdeploy. This causes ojdeploy to build the workspace-level deploy profile instead. I also omitted the output directory parameter (default is app's /deploy folder) and assume that there is only one application deployment profile (i.e. the default for profile parameter is the '*' wildcard). You can augment the build.properties file if you need to get fancier than that.
    <target name="deployApp" description="Deploy Complete YourFoo Application"
    depends="init">
    <taskdef name="ojdeploy"
    classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask"
    uri="oraclelib:OJDeployAntTask"
    classpath="${oracle.jdeveloper.ant.library}"/>
    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
    executable="${oracle.jdeveloper.ojdeploy.path}"
    ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"
    ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">
    <ora:deploy>
    <ora:parameter name="workspace"
    value="${oracle.jdeveloper.workspace.path}"/>
    <ora:parameter name="profile"
    value="${oracle.jdeveloper.deploy.profile.name}"/>
    <ora:parameter name="nocompile" value="true"/>
    </ora:deploy>
    </ora:ojdeploy>
    </target>

  • How do I generate XML File Using JDeveloper 9.0.3

    Hi All
    I want to generate a XML file against the data in one of my Oracle table,,,, This is the first time I am doing this Task, so please let me know whether I am going through the correct path, or if not appreciate if you could put me to the correct system of doing this please���..
    OK , Well I am working to a publishing company in Australia and we have Oracle 8i (Release 3 ) database and I have Oracle JDeveloper (9.0.3 -Preview ) version in my personal computer.
    I have a Table(ONIXT4) with three Columns( ISBN,Author,Price) in Oracle as follows:
    ISBN     Author     Price
    2512456321     Peter     14.50
    7445854127     Ray      21.75
    What I want to generate a XML File using JDeveloper as below with respect to data in above Table.
    <ISBN>2512456321</ISBN>
    <ProductInfor>
    <Author>Peter</Author>
    <Price>14.50</Price>
    </ProductInfor>
    <ISBN>7445854127</ISBN>
    <ProductInfor>
    <Author> Ray </Author>
    <Price>21.75</Price>
    </ProductInfor>
    I created the database connection within JDeveloper to Oracle those working fine,, my major problem is,, the Tag <ProductInfor>, since this is not a Column Name of the Table I don't know how should I incorporate this with the file.
    What I did so far with the JDeveloper:
    1.Create the Workspace and the Project
    2.File -- New -- XML -- XSQL
    3.Then I Selected Query from the Component Palette,, Property Values were NOT changed, and gave 'Select * from ONIXT4'
    Whole Untitled3.xsql file look likes below
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    <page xmlns:xsql="urn:oracle-xsql" connection="Connection1">
    <xsql:query max-rows="-1" null-indicator="no" tag-case="lower">
    Select * From OnixT4
    </xsql:query>
    </page>
    Then the Result comes as:
    <?xml version="1.0" encoding="windows-1252" ?>
    - <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    - <page>
    - <rowset>
    - <row num="1">
    <isbn>2512456321</isbn>
    <author>Peter</author>
    <price>14.5</price>
    </row>
    - <row num="2">
    <isbn>7445854127</isbn>
    <author>Ray</author>
    <price>21.75</price>
    </row>
    </rowset>
    </page>
    How do I format the outcome to obtain the my requirement??
    Welcome all comments of donig this ....

    To format your XML to the requiered output you'll use a stylesheet and XSLT
    As it says in your output:
    - <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    A nice tutorial on XSLT is available on the XML technology center in OTN:
    See Transforming XML with XSLT
    http://otn.oracle.com/tech/xml/learner.html

  • How do you create a jar file in JDeveloper 11.1.2.0.0

    How do you create a jar file in JDeveloper 11.1.2.0.0

    1) Select the project for which you would like to generate the jar.
    2) Right Click the selected right and select 'Project Properties'
    3) Select the 'Deployment' in the left tab.
    4) Click on 'New' to create a new deployment profile and in the popup dialog, select 'Jar File' profile type and provide the name.
    5) Press 'ok' to save the changes.
    6) Select the project and right click and select 'Deploy to' and select the jar profile name you have specified.
    The Jar library is generated and the full path to the library jar is shown in the log window.
    Thanks,
    Navaneeth

  • How to access ireport file in jdeveloper

    hi,
    I generate design file from ireport and need to know how to access that .jasper file from jdeveloper.
    regards

    User,
    Did you review any of the 274 posts that come up when you search the forum for "jasper" to see if your question might already be answered?
    John

  • How to Deploying Application Which consists .jpr project file in JDeveloper

    Hi,
    I Successfully compiled my application in JDeveloper 11g, My Project consists of .jpr file which loads all the source files. I added this .jpr file to New Application by creating a .jws in JDeveloper.
    When I run my application, I am getting the Deployment Error, How to deploy a project which consists of .jpr as project file in JDeveloper 11g.
    The Same was running in Oracle JDeveloper 10.3.3 version perfectly there the Server was OC4J but Here the Server is WebLogic.
    can anyone help me out in solving this,
    Thanks
    Srinivas Reddy P.
    Edited by: user10952409 on Mar 31, 2009 7:17 AM

    If the exampleClass1 does have a public method which is called from the main method, when you run it from the command line
    should work like this
    // sample class
    public class ExampleClass1
        // C'tor
        public ExampleClass1 ()
        public void testmethodWith3Params(String aS1, String aS2, String aS3)
            // do the work here
        public static void main(String[] args)
            String p1;
            String p3;
            String p3;
            ExampleClass1 xyz = new ExampleClass1();
            // read the params into p1,p2 and p3
            // omited the code
           // call the worker method
           xyz.testmethodWith3Params(p1,p2,p3);
    // now instead to call the main method you call the workter methos from your web app like
    ExampleClass1 aaa = new ExampleClass1 ();
    aaa.testmethodWith3Params(param1, param2,param3);
    ...If you don't have a method (or don't know it) you can call it via the main method like
    String [] param= {p1,p2,p3};
    ExampleClass1.main(param);Timo

  • Count files in Directory and the number of files in each sub directory

    Hello,
    I trying write a method which will start at a root of a file and count all the files in that directory. Then count all the files in each sub directory.
    import java.io.File;
    import java.io.FilenameFilter;
    import java.io.IOException;
    public class RunScan {
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              File file = new File("/home/robert/count");
              File[] files = file.listFiles();
              traverse(files);
              printfiles();
         private static int totalNumFiles = 0;
         private static int totalNumDir = 0;
         private static int filePerDir = 0;
         private static int subDir = 0;
         private static void traverse(File[] files) {
    for(int i = 0; i < files.length; i++) {
    if(files.isDirectory()) {
         totalNumDir++;
         printDir(files[i].toString());
         traverse(files[i].listFiles());
    totalNumFiles++;
    filePerDir++;
         private static void printfiles(){
              System.out.println("total files "+ (totalNumFiles));
         System.out.println("totls sub dir "+ totalNumDir);
         private static void printDir(String dirName){
              System.out.println("Total Files in "+dirName+" "+filePerDir);
              filePerDir = 0;

    Hint: Google "visitor pattern." This gives clues how to build a re-usable solution that can you use for future traversals that do things other than just file counts. Here's a teaser of an simple interface:
    public interface TreeVisitor {
    * Processes a single file or directory. <em>Tip:</em> If you want to track the number of
    * items processed, this function is the best place to update a counter.
    * Implementors of this method should not throw checked exceptions.
    * @param item The file or directory process.
    * @param depth Number of levels below top of traversal tree (0 = top of tree).
    public void visit(File item, int depth);
    }

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • Redeploying jar files in Jdeveloper - 10.1.3.3.0

    Hi,
    Is there a way to redeploy an existing .jar file in Jdeveloper 10g (10.1.3.3.0).
    We are upgrading from Oracle - 11i to R12 and this .jar file is working in 11i and if I try to use the same in R12, I'm getting an IllegalAccessError in the OAF page, where the .jar file is invoked (because of the version mismatch I believe).
    If we redeploy the .jar file, will that help in the version issue?
    Please provide some pointers on redeploying the existing jar files in JDeveloper 10.1.3.3.0
    Regards,
    Mohan

    You should ask this in the {forum:id=210}
    Timo

  • How do we build MAR file using jdeveloper ojdeploy

    Hi,
    I have to package the set of files as Mar file using jdeveloper ojdeploy tool.
    For that I create the new deployment profile (ess-meta) of MAR file archive type and selected all the required files for Metadata File Group.
    I am getting below error on running with below command.
    Please can any help me to build the MAR file using ojdeveloy.
    $ ./ojdeploy -workspace /commsapps/integrity/NetworkIntegrityApp/NetworkIntegrityApp.jws -profile ess-meta
    Oracle JDeveloper Deploy 11.1.1.1.0
    Copyright (c) 1997, 2009, Oracle and/or its affiliates.All rights reserved.
    ----build file----
    <?xml version = '1.0' standalone = 'yes'?>
    <ojdeploy-build>
    <deploy>
    <parameter name="profile" value="ess-meta"/>
    <parameter name="workspace" value="/commsapps/integrity/NetworkIntegrityApp/NetworkIntegrityApp.jws"/>
    </deploy>
    </ojdeploy-build>
    Nov 12, 2009 4:57:46 PM oracle.jdevimpl.deploy.DeployTaskRunner log
    SEVERE: This profile could not be deployed. No controller.
    null
    Thanks,
    Suresh

    MAR profile can not be deployed directly using either Jdeveloper/ojdeploy. Please include the MAR profile in a EAR profile and deploy that instead.

  • Error when Iopen the files in Jdeveloper

    I get this error when I tried to open the files in jdeveloper
    java.lang.NullPointerException
         at oracle.ideimpl.editor.RecentFilesLRU.getLRUList(RecentFilesLRU.java:174)
         at oracle.ideimpl.editor.RecentFilesLRU.getPositionInLRUList(RecentFilesLRU.java:191)
         at oracle.ideimpl.editor.RecentFilesLRU.getRecentFile(RecentFilesLRU.java:207)
         at oracle.ideimpl.editor.EditorManagerImpl.getMostRecentEditorAddin(EditorManagerImpl.java:767)
         at oracle.ideimpl.editor.EditorManagerImpl.getBestEditorAddin(EditorManagerImpl.java:746)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1105)
         at oracle.ideimpl.editor.EditorManagerImpl.whenOpenEditor(EditorManagerImpl.java:2332)
         at oracle.ideimpl.editor.EditorManagerImpl.handleDefaultAction(EditorManagerImpl.java:1893)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:343)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1576)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:1913)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:1934)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:176)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Hi,
    close Jdev, remove all bar one of the lruFiles item nodes in preferences.xml in \JDevHome10.1.3.1\system\oracle.ide.10.1.3.39.84
    (note i am using 10.1.3.1)
    when you are finished it should look something like this:
    <lruFiles>
                <Item class="oracle.ide.editor.RecentFile">
                   <editor>oracle.jdevimpl.help.HelpSystemAddin</editor>
                   <explicit>false</explicit>
                   <nodeURL path="../../../jdevstudio10131/jdev/doc/ohj/bc4jjavadoc.jar" jar-entry="oracle/jbo/server/ViewObjectImpl.html.help"/>
                   <projectURL/>
                   <workspaceURL/>
                </Item>
    </lruFiles>restard Jdev
    this has worked for me for this specific error a few times.
    Brenden

  • Opening the jar file in Jdeveloper

    Hi,
    I have a executable jar file of the BPEL process. How can I open the jar file in Jdeveloper in my local machine to do some enhancements. i have no source code with me. While i am trying to open in JDev.. The message parts are not being created and showing error messages with partner links.
    Could any one help me regarding this issue..
    very .. very.. urgent.
    Thanks,
    BPEL user

    Yes, i have unzipped and opened in JDeveloper. But exceptions are coming while validating. The exceptions are at the message parts and partnerlinks( asking the location of wsdl ). I have no .jws file.. Is it the problem?.
    Thanks,
    Bpel User

  • Opening jsp files in JDeveloper as source

    Does anyone know how to open jsp/jspx files in JDeveloper (10.1.3.4) as source, by-passing the design tab? For some reason with some files my IDE locks up when I open a file and it is generating the design screen. I want it to default to source mode for all files.
    Thanks,
    Mike

    Hi,
    Take a look at JDeveloper settings - change the default code editor view for JSPx  files .
    Pedja

  • Copy, count files, test path, process indicator and System.IO.FileInfo

    I found this, sctipt, that I try to re-write.
    As it is, it creates sub folders in the targetfolder, which I found out how to stop it from, by deleting the "\" backslash sign in line 9.
    But what I also want is that subfolders if such should exist, also gets copied from $source to $target folder, as of now this doesn't happen. Reason why I chose to try to re-write the script is basically, I can read what it does and I like all the flashy
    Things like counting and that it shows the percentage of the processbar AND the processbar :).
    I just don't now how to re-write it proberly. By the way nothing should be re-named in the targetfolder every thing from sourcefolder should be "as is" in the sourcefolder.
    $SourceFolder = "C:\Color1\TRID"
    $targetFolder = “C:\Color2\TRID”
    $numFiles = (Get-ChildItem -Path $SourceFolder -Filter *.*).Count
    $i=0
    clear-host;
    Write-Host ‘This script will copy ‘ $numFiles ‘ files from ‘ $SourceFolder ‘ to ‘ $targetFolder
    Read-host -prompt ‘Press enter to start copying the files’
    Get-ChildItem -Path $SourceFolder -Filter *.* | %{
    [System.IO.FileInfo]$destination = (Join-Path -Path $targetFolder -ChildPath $_.Name.replace(“_”,“\”))
    if(!(Test-Path -Path $destination.Directory ))
    New-item -Path $destination.Directory.FullName -ItemType Directory
    [int]$percent = $i / $numFiles * 100
    copy-item -Path $_.FullName -Destination $Destination.FullName
    write-Progress -Activity “Copying … ($percent %)” -status $_ -PercentComplete $percent -verbose
    $i++
    Write-Host ‘Total number of files read from directory ‘$SourceFolder ‘ is ‘ $numFiles
    Write-Host ‘Total number of files that was copied to ‘$targetFolder ‘ is ‘ $i
    Read-host -prompt “Press enter to complete…”
    clear-host;

    @Jaap
    Yes I want to overwrite existing files, since backup is taken care of by another script.
    Now I encounter this error when trying to use your write-progress example:
    Get-ChildItem : A parameter cannot be found that matches parameter name 'Files'.
    At line:3 char:51
    + $Files = Get-ChildItem -LiteralPath $SourceFolder -Files
    +                                                  
    ~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    cmdlet ForEach-Object at command pipeline position 1
    Supply values for the following parameters:
    Process[0]:
    Here is the script as I thought it should look like:
    $SourceFolder = "C:\Color1\TRID"
    $targetFolder = “C:\Color2”
    $Files = Get-ChildItem -LiteralPath $SourceFolder -Files
    $NumberofFiles = $Files.Count
    $Files | ForEach-Object -Begin {
    $FilesCopied = 0
    -progress{
    Write-Progress -Activity "Copying Files..." -PercentComplete [int](($FilesCopied/$NumberofFiles)*100) -CurrentOperation "$FilesCopied files copied out of total of $NumberofFiles files" -Status "Please wait."
    "$((Get-ChildItem -Recurse -File -LiteralPath $SourceFolder).Count) files will be copied to $targetfolder"
    Read-Host -Prompt 'Press Enter to Start Copying...'
    Copy-Item $SourceFolder -Recurse -Destination $targetFolder -Force -verbose
    $FilesCopied++
    # What is wrong now?

Maybe you are looking for

  • Fixed Asset DTW

    Dear All, As far as I know we have never loaded the Fixed Assets module before.  I donu2019t see any templates that get installed with SAP for DTW but I wonder if they have them on the web somewhere as they are now supporting Fixed assets module for

  • Incoming Excise Problem

    Hi Experts, The vendor gives us the exciseable goods on delivery challan on which they give the qty, no rate is defined on it, so we can make GRPO but later item rates in GRPO cannot be edited and we can change the rate in A/P invoice   but we cannot

  • Why would my video clips be running too fast when played on the monitor panel?

    I posted my problem earlier today, but re-reading it maybe I didn't explain myself well enough. My main question is: "why would my video clips be running too fast when played on the monitor panel ?".  This is occuring after I have selected my media f

  • Syncing issues, syncing issues

    I have imatch, however, since I am going out of the country I turned it off and wanted to sync my playlists manually.  This has been a nightmare.  They won't sync, but when I check my phone it says there are no playlists but there are some songs list

  • How do i get the toolbar to just show the icons, not the whole name of the site

    on the toolbar, I just want the icons of my favorites to show, not the whole name so I can add more to the toolbar..