We have a large number of legacy pages in our application's code repository which are not linked to other pages. Is there a way in ColdFusion Builder to see which pages are not linked so they can be deleted? (Builder is derivative of Eclipse, so the question may be answered by an Eclipse guru).
Identify Unlinked Pages - ColdFusion Builder
185 Views Asked by Allen AtThere are 2 best solutions below
James A Mohler
On
I am going to paraphrase Tomalak's answer from 9 years ago. He originally wrote
A regex is not advisable. Since ColdFusion is quite flexible in the way files can be included or referenced, there will be no way to determine the definitive list of dependencies from the source code alone.
You could insert a
<cflog>into each file and build a log from the running application. Examine the log after the application was active for a while and all functionality had been accessed at least once.
Source: How do I determine which files a ColdFusion application uses?
I would change that slightly...
You could insert a <cflog> into application.cfc or application.cfm to determinte which pages are being accessed.
After that list is compiled, then see if any of those files use <cfinclude> or createobject(), or <cfmodule>. Eventually all files will be accounted for.
I also find it useful to look at change dates. If no one has touched a file in 15 years, it probably isn't important.
Related Questions in ECLIPSE
- Set log4j.properties for GWT
- Compound classes stored in an array are not accessible in selenium java
- Eclipse color highlighting broken
- Eclipse Luna with Nodeclipse hangs when navigating a .js file with the Outline view
- Java Heap Space error on Layout xml: GC overhead limit exceeded
- Eclipse, how to find how many attributes defined in a class?
- Eclipse and Windows Headers
- Eclipse find source file from library
- mingw-64 conflicting declarations when cross-compiling
- String.split() not behaving in android
- local variable referenced before assignment in strange condition
- eclipse errors when try to change to master git branch
- Scala Eclipse IDE compiler giving errors until "clean" is run
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- Behaviour Difference: Intellij vs Eclipse
Related Questions in COLDFUSION
- CSV(having extra quotes in field value) to array in ColdFusion
- using some technique to fix the url
- Get number of files in various subdirectories relative to the current page - ColdFusion
- How to create a "VALID DOCX" using Coldfusion?
- Twilio Rest API Filtering using Coldfusion11
- Encoding for html in Open Graph Facebook attributes
- Embedding Image in Microsoft Word using ColdFusion
- CFMail with attachment is being sent and is in undelivr folder
- Error while Running a .exe file using coldfusion schedule task
- Coldfusion 9 serializeJSON()
- How to filter query results based on selection from dropdown list
- Display single digits with leading zero
- Coldfusion Session Timeout Application.cfc
- CFEXECUTE seems to not execute PowerShell in ColdFusion 11
- Joining SOLR Collections on ColdFusion Server
Related Questions in COLDFUSION-11
- CSV(having extra quotes in field value) to array in ColdFusion
- Twilio Rest API Filtering using Coldfusion11
- Encoding for html in Open Graph Facebook attributes
- CFEXECUTE seems to not execute PowerShell in ColdFusion 11
- How to sanitize form values to allow text-only
- How to get associative arrays notation to assign simple values
- IIS8 - Slash after file name delivers file & HTTP:200 for CFM, HTML, but HTTP:404 for ASP
- Generating PDFs in ColdFusion
- ColdFusion 11 cfheader not being passed correctly in IE 8
- Coldfusion Builder 3 Coldfusion 11 Display page in Browser
- ColdFusion 11 cfflush tag not working correctly?
- cfimage writetobrowser functionality using cfscript
- Coldfusion Rest Services Timeout and Throws 500 error after running successfully
- how do I change the label for each object in SerializeJSON
- Coldfusion Search HTML <textarea> Then Covert Base64 String To File On Server
Related Questions in DEAD-CODE
- How to detect functions, that are only called from unused functions using cppcheck?
- Will my compiler ignore useless code?
- LLVM - Liveness Analysis to remove dead code
- Xcode: would like to highlight soon-to-be-deprecated sections of source code
- Why isn't "int someVal=0" for an instance field considered dead code?
- Trouble Converting a String to Acronyms
- How does the compiler in Java decide on unreachable code?
- How can I know which parts in the code are never used?
- Dead code and/or how to generate a cross reference from Haskell source
- How to prevent compiler from optimizing a load to variable that is never used
- SuppressWarnings "all" complaint from Eclipse
- Disabling specific optimization(Dead code elimination) in gcc compiler
- Remove dead code in JSP
- dead code android setMultiChoiceItems
- Dead code java eclipse
Related Questions in COLDFUSIONBUILDER
- Coldfusion Builder Snippets repository
- Coldfusion Builder 3 Coldfusion 11 Display page in Browser
- How to configure SVN with ColdFusion Builder?
- Does ColdFusion Builder have a format document feature?
- cfBuilder - working with javascript, CSS, HTML etc
- Identify Unlinked Pages - ColdFusion Builder
- Tiny icons in Navigator tab in CF Builder 2018
- Install ColdFusion Builder 2 Update 1 Plug-in in Eclipse 4.3
- Associating a custom preview URL with a .cfm file in ColdFusion Builder (Eclipse)
- ColdFusion Builder throwing an error about my open project
- Are there any dark themes (like Zenburn) for Coldfusion Builder?
- How to Format Text in Eclipse with cfeclipse plug-in
- Does ColdFusion Builder have split screen editing like Homesite+, and how do I turn it on?
- How do I turn off Tab and New Line markers in Eclipse?
- How to import ColdFusion project into Eclipse ColdFusion Builder?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I would just search using "File Search" if the file name exists within the project.
Cfbuilder 3 search for a file with specific text inside a folder
If you use a framework such as FW/1 or ColdBox, you'll have to search for the model/view/controller name and not the exact filename.