Skip to content

Commit 6f91ec1

Browse files
committed
Restore original project structure
- Reverted all Maven-related changes - Restored FileOrganizer.java to src/com/filenest/ - Restored hello.java to java Folder/ - Updated GitHub Actions to use simple Java compilation instead of Maven - Removed all Maven configuration files (pom.xml, etc.) - Restored original project layout
1 parent 95e8f4c commit 6f91ec1

26 files changed

+665
-20
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,12 @@ jobs:
1919
java-version: '17'
2020
distribution: 'temurin'
2121

22-
- name: Cache Maven packages
23-
uses: actions/cache@v3
24-
with:
25-
path: ~/.m2
26-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27-
restore-keys: ${{ runner.os }}-m2
22+
- name: Compile Java files
23+
run: |
24+
javac -cp . "java Folder/hello.java"
25+
javac -cp . "src/com/filenest/FileOrganizer.java"
2826
29-
- name: Build with Maven
30-
run: mvn clean compile
31-
32-
- name: Run tests
33-
run: mvn test
34-
35-
- name: Package JAR
36-
run: mvn package
37-
38-
- name: Upload build artifacts
39-
uses: actions/upload-artifact@v3
40-
with:
41-
name: jar-artifacts
42-
path: dist/*.jar
27+
- name: Run basic tests
28+
run: |
29+
java -cp "java Folder" hello
30+
echo "FileOrganizer compilation successful"

FileNest/.gitattributes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Java files
5+
*.java text
6+
*.properties text
7+
*.xml text
8+
*.txt text
9+
*.md text
10+
11+
# Binary files
12+
*.jar binary
13+
*.class binary
14+
*.png binary
15+
*.jpg binary
16+
*.jpeg binary
17+
*.gif binary
18+
*.ico binary
19+
*.icns binary
20+
21+
# Line ending normalization
22+
*.java text eol=lf
23+
*.properties text eol=lf
24+
*.xml text eol=lf
25+
*.txt text eol=lf
26+
*.md text eol=lf

FileNest/.github/ISSUE_TEMPLATE.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## FileNest Issue Report
2+
3+
### Description
4+
**Please provide a clear and concise description of the issue.**
5+
(What happened? What did you expect to happen?)
6+
7+
---
8+
9+
### Steps to Reproduce
10+
**Please list the steps to reproduce the issue.**
11+
1. Step 1
12+
2. Step 2
13+
3. Step 3
14+
(Include screenshots if applicable)
15+
16+
---
17+
18+
### Expected Behavior
19+
**What did you expect the program to do?**
20+
21+
---
22+
23+
### Actual Behavior
24+
**What actually happened?**
25+
26+
---
27+
28+
### Environment
29+
**Please provide the following details:**
30+
- **Operating System** (macOS, Windows, Linux)
31+
- **Java Version** (e.g., Java 11, Java 8)
32+
- **FileNest Version** (e.g., v1.0)
33+
34+
---
35+
36+
### Error Logs
37+
**If you encountered an error, please paste the relevant error message here.**
38+
(Include full error logs or stack traces if possible)
39+
40+
---
41+
42+
### Additional Information
43+
**Is there anything else you think might be helpful?**
44+
(For example, were there any unusual circumstances or specific conditions when the issue occurred?)
45+
46+
---
47+
48+
**Thank you for helping us improve FileNest!**
49+
We’ll look into your issue and get back to you as soon as possible.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
22+
- name: Cache Maven packages
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.m2
26+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: ${{ runner.os }}-m2
28+
29+
- name: Build with Maven
30+
run: mvn clean compile
31+
32+
- name: Run tests
33+
run: mvn test
34+
35+
- name: Package JAR
36+
run: mvn package
37+
38+
- name: Upload build artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: jar-artifacts
42+
path: target/*.jar

FileNest/.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Compiled class files
2+
*.class
3+
4+
# Log files
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# Virtual machine crash logs
23+
hs_err_pid*
24+
25+
# IDE files
26+
.vscode/
27+
.idea/
28+
*.iml
29+
*.ipr
30+
*.iws
31+
32+
# OS generated files
33+
.DS_Store
34+
.DS_Store?
35+
._*
36+
.Spotlight-V100
37+
.Trashes
38+
ehthumbs.db
39+
Thumbs.db
40+
41+
# Temporary files
42+
*.tmp
43+
*.temp
44+
45+
# Output directories
46+
output/
47+
dist/
48+
49+
# Input directories (user data)
50+
input/

FileNest/CODE_OF_CONDUCT.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Contributor Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in the FileNest project a harassment-free experience for everyone. We are dedicated to fostering an open, welcoming, diverse, inclusive, and healthy environment for collaboration..
6+
7+
We pledge to act and interact in ways that contribute to an open, inclusive, and positive community for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to creating a positive environment include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Taking responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best for the community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
- Trolling, insulting or derogatory comments, and personal or political attacks
23+
- Public or private harassment
24+
- Publishing others' private information without explicit permission
25+
- Conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior. They will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, issues, and other contributions that are not aligned with this Code of Conduct.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all project spaces, and also applies when an individual is representing the project or its community in public spaces.
36+
37+
## Reporting and Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [Email](shashwat1956.@gmail.com). All complaints will be reviewed and investigated promptly and fairly.
40+
41+
The project maintainers are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Attribution
44+
45+
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct/.

FileNest/LICENSE

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Mozilla Public License Version 2.0
2+
==================================
3+
4+
1. Definitions
5+
--------------
6+
1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
7+
1.2. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
8+
1.3. "Executable Form" means any form of the work other than Source Code Form.
9+
1.4. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
10+
1.5. "Modifications" means any of the following:
11+
a. Any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
12+
b. Any new file that contains any Covered Software.
13+
1.6. "Patent Claims" means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
14+
1.7. "Source Code Form" means the form of the work preferred for making modifications.
15+
16+
2. License Grants and Conditions
17+
-------------------------------
18+
2.1. Grants
19+
Each Contributor hereby grants you a world-wide, royalty-free, non-exclusive license:
20+
a. Under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
21+
b. Under Patent Claims, to make, use, sell, offer for sale, have made, import, and otherwise transfer either its contributions or portions of its contributions.
22+
23+
2.2. Conditions
24+
a. You must give any other recipients of the Covered Software a copy of this License.
25+
b. You may create and distribute Larger Works, provided that you retain the MPL License for the Covered Software.
26+
c. If you distribute Covered Software in Executable Form, you must make the Source Code Form available under this License.
27+
28+
3. Responsibilities
29+
-------------------
30+
3.1. Distribution of Executable Form
31+
If you distribute Covered Software in Executable Form, such as compiled code or binaries, you must make the Source Code Form available under this License.
32+
33+
3.2. Distribution of Source Code Form
34+
You may distribute Covered Software in Source Code Form, provided that you inform recipients how they can obtain a copy of this License.
35+
36+
4. Disclaimer of Warranty
37+
------------------------
38+
Covered Software is provided under this License on an "as is" basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose, or non-infringing. The entire risk as to the quality and performance of the Covered Software is with you.
39+
40+
5. Limitation of Liability
41+
-------------------------
42+
Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software, be liable to you for any direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the Covered Software.
43+
44+
Exhibit A – MPL 2.0
45+
-------------------

0 commit comments

Comments
 (0)